Topic: Hello friends...
how to set row Height in tablegrid using script???
My Visual Database → General → Hello friends...
how to set row Height in tablegrid using script???
procedure Form1_TableGrid1_OnChange (Sender: TObject);
begin
Form1.TableGrid1.Row[0].RowHeight := 100; // first row
Form1.TableGrid1.Row[1].RowHeight := 50; // second row and so on...
end;
thank you..
is this possible to Auto set Row height in tablegrid...
Example
procedure Form1_GridEmployees_OnChange (Sender: string);
var
i, c: integer;
begin
c := Form1.GridEmployees.Columns.Count - 1;
for i := 0 to c do
begin
Form1.GridEmployees.Columns[i].VerticalAlignment := taAlignTop;
Form1.GridEmployees.Columns[i].WrapKind := wkWordWrap;
end;
c := Form1.GridEmployees.RowCount - 1;
for i := 0 to c do Form1.GridEmployees.BestFitRow(i);
end;
My Visual Database → General → Hello friends...
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi