Questions tagged [tgrid]
37 questions
13
votes
6 answers
Recommendations for the most useful Delphi TStringGrid (Grid) replacement
One of the weaker areas of Delphi are the grids (eg TStringGrid) where, although it does a good basic job, it becomes harder when you need to print it or customise its appearance. I've used it for about 15 years thus its pretty embedded within my…

Brian Frost
- 13,334
- 11
- 80
- 154
11
votes
2 answers
Delphi Firemonkey TGrid how to update
I have a TGrid with a mixture of columns (ImageColumn and StringColumn). I can populate it using onGetValue event which works fine. My questions are:
How to force the entire grid to rebuild and cause onGetValue event?
I'm using UpdateStyle at the…

Alan Grace
- 171
- 1
- 6
7
votes
1 answer
Firemonkey: Styling the tGrid or alternative Grid/List components (Virtual)
I'm trying to create my first app based on FireMonkey, and I hit a wall.
The only virtual list control I can find is tGrid.
This component is pretty good, but I can not figure out how to extend or customize it.
I get that there is tCheckbox column,…

Artis De Partis
- 311
- 5
- 13
4
votes
0 answers
How to populate a user-defined column in an FMX TGrid by LiveBindings
I am trying to create a TCalendarEdit containing column inside a grid component in the following way.
type
TDatecell = class(TCalendarEdit)
end;
TDateColumn = class(TColumn)
private
function CreateCellControl: TStyledControl;…

asd-tm
- 3,381
- 2
- 24
- 41
4
votes
1 answer
How to make TProgressColumn work when used with LiveBindings and datasets
My goal is to have a TGrid with several columns, connected to a TClientDataSet via LiveBindings. One of the columns is of type TProgressColumn.
The grid displays the data, but the progress bar column shows nothing (i.e. 0% progress).
The…

iPath ツ
- 2,468
- 20
- 31
4
votes
0 answers
FireMonkey - workaround for the missing OnSetValue event in TPopupColumn
Changes in the TPopupColumn (TGrid) do not trigger the OnSetValue event so I cant get the value from it set by the user (GetValue works fine).
The problem was already reported in the QualityCentral:…

Roman
- 83
- 5
3
votes
1 answer
How to change background color of FMX.TGrid row depend on value in XE4
I'd like to know how to change background color of whole row in Firemonkey TGrid/TColumn.
Saw bunch of similar questions, but none of them helped me. I'm using Delphi XE4. TGrid may contain TCheckColumn and TStringColumn.

snake
- 356
- 2
- 10
2
votes
1 answer
How to display a TImage as a background of a TGrid on Firemonkey?
I have a TGrid on a form.
I need to display a TImage inside that grid, as it´s background.
I know that in Firemonkey framework, controls are containers to other controls. Having that in mind, I dragged the TImage Object to the TGrid Obect using the…

Leonardo
- 31
- 6
2
votes
1 answer
How to get cell value from specific column/row in a FireMonkey TGrid
Im trying to get value from specific cell from my TGrid but without success. I have try something like this
//Here i get value with a success but i need to get value from first column and
no matter what row it is clicked…

Jande
- 1,695
- 2
- 20
- 32
2
votes
1 answer
Delphi Firemonkey Grid: Invisible Columns When Navigating
i have a TGrid on FMX with 3 columns, the second column is Visible False, if I click the first column and press the arrow to focus on the next visible column, the cursor does not go to the third column, it disappears, as if focusing on the second…

Tallys Ferrante
- 173
- 1
- 13
2
votes
1 answer
fmx delphi berlin how to change font color in rows of Tgrid
NEED HELP..I am using delphi 10.1 berlin. There are some different with other previus version of Embarcadero Delphy Code Gear. I need to change font color in rows of TGrid. Whith this next code i will change backgrond color but i need to change…

Luigi Ambrosino
- 21
- 1
- 2
2
votes
2 answers
How to set 'selected' property of TGrid to -1
I am using a FMX.Grid.TGrid in which a user can select complete rows. In some cases I want to reset this selection. If I do this with grid.selected = -1 or with grid.selectRow(-1) the selection is removed from the grid but grid.selected is set to…

Rynardald
- 329
- 2
- 10
2
votes
1 answer
How I get the new Field Value from a TClientDataset in Delphi?
hi i have a problem with TClientDataset in Delphi. I want to get a Dataset with the changed Data.
here is my code:
procedure TForm2.btnUpdateClick(Sender: TObject);
var
I: Integer;
counter : Integer; //for testing
value : String;
begin
…

Tarasov
- 3,625
- 19
- 68
- 128
2
votes
1 answer
FireMonkey XE5 - Livebinding - TGrid - Cell text aligment
I have a Firemonkey Desktop Application for Windows. I have a TGrid which I populate through a visual livebinding TBindSourceDB component. I want some columns to have text aligned to the right, as they are numerical values. I have tried…

Pedro Campos
- 101
- 2
- 6
2
votes
1 answer
Delphi XE4 Firemonkey Grid Control - Styling cells individually
We have just upgraded from Delphi 2010 to XE4 and using FireMonkey for the first time, so stumbling about in the dark a bit trying to figure out how it all works.
As per a query a while back I'm trying to get individual cells in a TGrid component…

Alex
- 543
- 1
- 9
- 21