0

Hi
How do I can Change the Column width and Caption of a DataGrid in my Program
and also how do I can change the Height of a Row of a DataGrid

2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by sky_khan
0

Hi
How do I can Change the Column width and Caption of a DataGrid in my Program
and also how do I can change the Height of a Row of a DataGrid

for Column width and caption change appropriate properties of underlying dataset fields. eg. NameField.DisplayWidth:=.. NameField.DisplayLabel:=.. dont sure about height. Maybe you can change it from Datagrid properties but dont remember whether it is public property or not.

0

I can not find DisplayLabel or DisplayWidth in DataSet

var ds : DataSet;
Begin
ds.???

or

DataGrid1.????

0

I can not find DisplayLabel or DisplayWidth in DataSet

var ds : DataSet;
Begin
ds.???

or

DataGrid1.????

Dataset "Fields" not Dataset. PersonGrid : TDBGrid; PersonTable : TDataset; PersonSource : TDataSource; PersonTable.FieldByName('Surname').DisplayWidth:= ... or PersonGrid.DataSource.Dataset.FieldByName('Surname').DisplayWidth

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.