TDBGrid columns design time or run time?
Posted
by
Mawg
on Stack Overflow
See other posts from Stack Overflow
or by Mawg
Published on 2012-10-12T15:03:16Z
Indexed on
2012/10/12
21:37 UTC
Read the original article
Hit count: 141
I am using TDBGrid
for the first time.
I didn't even notice the Columns
property in the object inspector and everything went just fine: the grid was filled.
Then I saw the Columns
property and tried it. When I use the object insector to add items to the Columns
property of the grid, they do not all of them show up at run time. To me, it looks like the FieldName
property is important. It looks like it is correct, but there are no values in some columns.
If I leave this property blank (no columns at all) it seems that the control populates it itself at run time and I do see all the columns. I could live with that. When I set column titles at run time it works, but setting column width does not.
© Stack Overflow or respective owner