tgrid

TTeeGrid is not displaying the data at runtime using data from REST

给你一囗甜甜゛ 提交于 2021-01-28 22:23:50
问题 I created a simple RME for TTeeGrid, a descendant perhaps of TGrid in Firemonkey. As shown below, the data are displayed at design time but not at runtime except the headers. I've been breaking my head over this for weeks already but not luck. Let me know if you need more details but what you see in the image are all you get. I just need help to have the data displayed at runtime as shown in the design time. UPDATE 1 This issue is not the case with TPrototypeBindSource. The data shown in the

FireMonkey XE5 - Livebinding - TGrid - Cell text aligment

天大地大妈咪最大 提交于 2019-12-22 12:29:28
问题 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 through: onPainting event getting the TTextCell control by number of ColumnxRow typecasting it and setting TextAlignt property to the right None of those measures align the text to the right. I have tried to set it at runtime, unsuccessfully though, getting

Firemonkey: TGrid usage on Embarcadero C++ Builder XE3

佐手、 提交于 2019-12-20 04:27:12
问题 I'm try to build a tool that reads data from a database and displays it as a table using a TGrid in Firemonkey. I need to use different types of columns like TCheckColumn and TPopupColumn but can't find any good guide or example on how to use them in C++ Builder. Any way, I managed to understand the usage of the TStringColumn,TProgressColumn setting the Value of the cell in the TGrid's event onGetValue. Does any one of you know how to set the Value for columns of type TCheckColumn,

How I get the new Field Value from a TClientDataset in Delphi?

萝らか妹 提交于 2019-12-13 02:09:42
问题 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 if not Self.DatasetArtikel.Active then begin ShowMessage('Nicht aktiv'); Exit; end; if Self.DatasetArtikel.ChangeCount = 0 then begin ShowMessage('Delta is empty'); Exit; end; counter := DatasetArtikel.ChangeCount; //DatasetArtikelUpdate.ClearFields; /

fmx delphi berlin how to change font color in rows of Tgrid

时光毁灭记忆、已成空白 提交于 2019-12-11 00:38:28
问题 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 only Font Color : aRowColor.Color := arSTATUS_GRID_COLOR[0]; Canvas.FillRect(Bounds, 0, 0, [], 1, aRowColor); Column.DefaultDrawCell(Canvas, Bounds, Row, Value, State); 回答1: Instead of calling Column.DefaultDrawCell() , you can use FMX.Graphics.TCanvas

How to change background color of FMX.TGrid row depend on value in XE4

我们两清 提交于 2019-12-10 21:26:17
问题 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 . 回答1: TGrid row background style color is divided into two categories : Focus color Selection color Focus color applies to the focused Cell. Selection color applies to the selected Row. Changing focus color is a straight forward process: procedure ChangeGridCellFocusColor

How to populate a user-defined column in an FMX TGrid by LiveBindings

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 16:20:14
问题 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; override; public constructor Create(AOwner: TComponent); override; end; ... constructor TDateColumn.Create(AOwner: TComponent); begin inherited; end; function TDateColumn.CreateCellControl: TStyledControl; begin Result := TDatecell.Create(Self); end; It works fine. Then

FireMonkey XE5 - Livebinding - TGrid - Cell text aligment

放肆的年华 提交于 2019-12-06 08:00:44
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 through: onPainting event getting the TTextCell control by number of ColumnxRow typecasting it and setting TextAlignt property to the right None of those measures align the text to the right. I have tried to set it at runtime, unsuccessfully though, getting the TStyledControl and assigning procedures to the onApplyStyleLookup of the TTextCell . Any ideas on it?

Firemonkey: TGrid usage on Embarcadero C++ Builder XE3

为君一笑 提交于 2019-12-02 07:16:15
I'm try to build a tool that reads data from a database and displays it as a table using a TGrid in Firemonkey. I need to use different types of columns like TCheckColumn and TPopupColumn but can't find any good guide or example on how to use them in C++ Builder. Any way, I managed to understand the usage of the TStringColumn,TProgressColumn setting the Value of the cell in the TGrid's event onGetValue. Does any one of you know how to set the Value for columns of type TCheckColumn, TImageColumn and TPopupColumn? thanks Daniele ---UPDATE--- I managed to use the TProgressColumn. This is what I