Subject | [IBO] TDBGrid property and methods in TIB_Grid. |
---|---|
Author | Mirko's |
Post date | 2002-08-22T14:15:20Z |
Hi,
with standard TDBGrid I use this code to select the column
that I want to show in a grid:
with DBGrid1 do
begin
columns.clear;
columns[0].FieldName := 'FIELD1';
columns[0].Title.Alignment := taLeftJustify;
columns[0].Title.Caption := 'Heigth';
columns[0].Width := 200;
columns.add;
columns[1].FieldName := 'FIELD2';
columns[1].Title.Alignment := taLeftJustify;
columns[1].Title.Caption := 'Color';
columns[1].Width := 80;
...
end;
What I must use to do the same with TIB_Grid?
and it is possible to set the focus in a specified column of the grid?
Thank you
Mirko Guidolin
with standard TDBGrid I use this code to select the column
that I want to show in a grid:
with DBGrid1 do
begin
columns.clear;
columns[0].FieldName := 'FIELD1';
columns[0].Title.Alignment := taLeftJustify;
columns[0].Title.Caption := 'Heigth';
columns[0].Width := 200;
columns.add;
columns[1].FieldName := 'FIELD2';
columns[1].Title.Alignment := taLeftJustify;
columns[1].Title.Caption := 'Color';
columns[1].Width := 80;
...
end;
What I must use to do the same with TIB_Grid?
and it is possible to set the focus in a specified column of the grid?
Thank you
Mirko Guidolin