Questions tagged [stringgrid]

66 questions
0
votes
2 answers

String grid prints with no brush style

I am having trouble with printing string grid. I use this code which works good except brush style. In application it works - where in cell is 'XXXX', it is overwritten with brush.style:= bsDiagCross; But when I try to print it, brush style is gone…
Karel CZ
  • 25
  • 4
0
votes
1 answer

StringGrid scrollbars always visible

I'm programming in Delphi and I want to have a vertical Scrollbar that is always visible, even if the number of rows is 1 (the DefaultDrawing option is not active, i'm using Canvas to draw the cells). Can anyone help me ?
Thomas Jomphe
  • 117
  • 6
  • 17
0
votes
1 answer

Resize the columns stringgrid in delphi

I want a Stringgrid. I change the size of the columns. This Stringgrid is connected to the database. However, I tried different methods; the column did not change. What should I do?
A.K
  • 106
  • 1
  • 11
0
votes
1 answer

how to copy selected data from stringgrid

i couldn't find the way to copy selected cell data from a stringgrid, i want the selected data string to be copied to Edit box if possible.. many thanks in advance. im using delphi xe8, firemonkey. what i tried so far.. Private A : Array of…
markkk
  • 31
  • 2
  • 7
0
votes
0 answers

Firemonkey C++, how to change font color and cell color in StringGrid, changing in ApplyStyleLookup

I have made research of how to dynamically at run time change font color and cell background color, but all solutions are in Delphi code, and cannot be used in C++. Like this one: CellCtrl := TColumnAccess( StringGrid1.Columns[ Col ]…
Andersen
  • 9
  • 2
0
votes
1 answer

Dynamic StringGrid C++ Builder

I created a program in C++Builder 6 and I have a problem now. I have 6 files: Unit1.cpp, Unit1.h, Unit2.cpp, Unit2.h, Unit3.cpp, Unit3.h. Unit1.cpp is file for main form. Problem : I want to create in Function void __fastcall…
john
  • 1
  • 1
  • 2
0
votes
1 answer

delphi stringgrid inplaceedit how to position and width of edit box in a cell that has a left/right justified checkbox

I have altered a D6 stringgrid to allow for left or right justified checkboxes to be displayed in the grid cells. When the stock inplace editor is called the edit box for receiving data starts at the beginning of the cell and its width covers the…
Bill
  • 5
  • 3
0
votes
1 answer

Stringgrid in delphi

I am trying to write code to calculate sum of all numbers from cells that form main diagonal of stringgrid but the result I get is just number I typed in bottom right cell. Here's my code: procedure TForm1.Button1Click(Sender: TObject); var i, j:…
0
votes
2 answers

How colored the Cell of StringGrid Delphi XE2?

im start with Delphi. I have a problem with TStringGrid and Colored the Cell. im using this code for color the BackGround when is selected: procedure TForm_Matrix.MatrizGeneralDrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State:…
Wixo
  • 3
  • 7
0
votes
1 answer

Shadows under StringGrid

I have a form. On formshow, I initialize values of a field into stringgrid cells, but it shows a shadow under cell's texts. I've used Persian charaters for field's values. I did the same with english values, but it works fine. I appreciate any…
Holy Thirteen
  • 158
  • 2
  • 8
0
votes
2 answers

Accessing StringGrid from another Form

Edit the body for more details. I have a Form called ENP, defined in the EnpView unit. The ENP form, is created and shown from the handler event of a click a toolbar item in the Main Form (TPrincipal). procedure TPrincipal.ENP1Click(Sender:…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
0
votes
1 answer

Applying a style to a Delphi XE4 Firemonkey StringGrid cell at runtime

I am trying to apply a style to an XE4 FM Stringgrid at runtime, but am unable to find the correct syntax to do this. The StringGrid already inherits the 'TextCellStyle' (the default) which I have created at design time, and display the cells in…
user2382004
  • 1
  • 1
  • 1
0
votes
1 answer

Changing ColumnCount in FireMonkey Delphi XE2

I'm trying to load stringgrid from file, in Delphi XE2 Firemonkey. When I doing it in Delphi it looks like that: procedure TForm1.File2StringGrid(Sender: TObject); var F: TextFile; Tmp, x, y: Integer; TmpStr: string; begin AssignFile(F,…
-1
votes
1 answer

How to enable multiple row selection into a TStringGrid

I'm using C++Builder and I can't select multiple rows of my TStringGrid with the mouse. Is there a particular property of TStringGrid that enable this?
user9432978
-1
votes
1 answer

Checkboxes in StringGrid do not toggle normally: Delphi

I've modified the Delphi code found here to save the checkbox state in a three column stringgrid. The problem is that you have to click a cell twice in order to toggle it. If I set goEditing then you can set the state with one click but one more…
user3640611
  • 87
  • 2
  • 10