TMSFMXGrid and LiveBinding

xe7.1 lastest grid version


Hi

I am using the TMS Grid with Livebinding in FMX.

I have the following questions:

1) Can I change the column alignment visually? or I need to write code for that?

2) Is it possible to have 2 lines for EACH row? I needed that the second line to be the description that is long

3) How is done column sum on footer?

Thanks
  1. how can add all font colors of the grid? I am using AdapttoStyle and the background is white on MetropolisUI Black Style.  All the fonts are white, I wanted them to be black no other change.

Hi, 


1) You can drag columns by setting TMSFMXGrid1.Options.Mouse.ColumnDragging to true.
2) 2 lines for each cell can be done by adding a #13#10.
3) You can take a look at the Grouping demo that is included in the distribution.
4) You can override the default font style with the following code:

procedure TForm1.TMSFMXGrid1GetCellLayout(Sender: TObject; ACol,
  ARow: Integer; ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
begin
  ALayout.FontFill.Color := claBlack;
end;

Kind Regards, 
Pieter