Questions tagged [stringgrid]

66 questions
1
vote
1 answer

Is it possible to change the text in a StringGrid cell immediately after adding a new row or column in Lazarus/Delphi?

I am trying to perform: Form3.StringGrid1.Cells[0,Form3.StringGrid1.RowCount] := 'Hoofdstad'; after performing: Onderdelen := Form3.StringGrid1.RowCount; Form3.StringGrid1.RowCount := Onderdelen + 1; It gives an error every time, it will say that…
miegaael
  • 23
  • 2
1
vote
1 answer

Firemonkey StringGrid wont send back data to Snapserver under android

I'm developing an android app in FM, NO BINDING(slow etc), I manually fill the data into string grid and manual update the records. The compiled 32-bit app works well but under android it wont UPDATE the records. Its communicate over DataSnap server…
1
vote
0 answers

FMX StringGrid low performance on phone XE5

I have performance issue in FM, I DON'T use binding because its epic slow I just filling the StringGrid from SQL manually and after build->deploy etc. And the scrolling in the StringGrid is slow not like in binding. Is there any cheat to speed up…
1
vote
2 answers

Read a Text from TStringGrid cells[aCol,aRow] , which is generated by DrawText function on "OnDrawCell" event

Am having a string grid(TStringGrid) with 2 column and 1 row (Property: ColCount = 2 & Rowcount = 1. Code for OnDrawCell Event: procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState); var …
bejarun
  • 175
  • 3
  • 11
1
vote
1 answer

Transparent color in StringGrid

I fill cells in StringGrid green color procedure TForm1.StringGridDrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState); begin StringGrid.Canvas.Brush.Color :=…
Mlody87
  • 425
  • 1
  • 7
  • 19
1
vote
1 answer

Center text in StringGrid in delphi

I want to know how to set the text in the center of a cell in a StringGrid (Vertical AND Horizontal)... I'm using the canvas of the StringGrid. I'm using Delphi and I want the simplest way to do it... Can anyone help me ?
Thomas Jomphe
  • 117
  • 6
  • 17
1
vote
2 answers

Delphi XE3 stringgrid fixed cell click event doesn't fire

I have a StringGrid component in Delphi. I would like to catch when user clicks to the fixed cells (header). When I bound FixedCellClick event to the grid, event can only detects the click using the left button of the mouse. If I try that with the…
user3880482
  • 35
  • 2
  • 9
1
vote
1 answer

TPopup Arrow Position

I have a delphi project that creates a TPopup when I put my mouse over a field in a StringGrid (Field is edited in a Memo so I wanted to have a fast way to read it). The problem is: when I place the mouse over it the little "arrow" pointing to my…
1
vote
1 answer

Font Color on a StringGrid with firemonkey

I'm changing the background color based on the data but it makes my text hard to read so I need to change the font color (to white if I have a darker color) but I can't find a way to do it, I'm using Delphi XE8. if not (isSelected) then begin …
1
vote
2 answers

How can I change the font size of the header of a Stringgrid in Delphi Firemonkey XE7?

I created a Stringgrid in Delphi Firemonkey XE7 for an application and filled it with data from my MySQL database. To enlarge the font size I used this code: procedure TFormSearchRecipient.sgRecipientDrawColumnCell(Sender: TObject; const Canvas:…
Lea
  • 261
  • 5
  • 14
1
vote
1 answer

FetchRows not working with FireMonkey StringGrid

I have set the FetchRows of the UniQuery to 25. In VCL application, it works fine with DBGrid. It shows only 25 records. And when i reach the bottom of DBGrid, it auto load more records. But when in Firemonkey apps, the FetchRows didn't work. it…
Chang
  • 179
  • 1
  • 9
1
vote
1 answer

How to display a multiline text in a StringGrid Cell (Delphi XE6 - Android)

I have a database bind to a Firemonkey StringGrid and I want to show a long text field in the cells, for an Android App, but I can't find a property nor procedure to do that. Any idea? (Thanks)
Ro3000
  • 31
  • 1
  • 5
1
vote
0 answers

Delphi XE5 FireMonkey TstringGrid cells don't accept keyboard input

I am using a TStringGrid which is placed on a popup (TPopup). when the user click a button the popup will appear with the stringGrid. user will then insert some data in the cells then clicking an apply button on the popup which will update a data…
Khalid
  • 75
  • 1
  • 7
1
vote
1 answer

Undeclared 'FormCreate' error Delphi

I'm trying to name columns (in this grey row) in a string grid. I know that I should use something like this: procedure TForm1.FormCreate(Sender: TObject); begin StringGrid1.Cells[0,0] := 'Text 1'; StringGrid1.Cells[1,0] := 'Text 2'; end; The…
Vekka
  • 141
  • 1
  • 1
  • 12
1
vote
0 answers

Firemonkey StringGrid tab and arrow keys are not working

I want to do some work with FM StringGrid, everything works fine but the problem I have is the arrow keys + tab key, they don't work as expected, e.g. if I press the tab key the whole grid loses the focus or if I press one of the arrow keys (up,…
Raul
  • 656
  • 5
  • 17