Forum > Databases

[solved] DBGrid - fix one column


I use a DBGrid with many colunms.
On scrolling to the right, I loose out of sight the table-id.
Is there a way, I can fix the column in a way, that it stays always on the left side, if the other columns scroll?

In other words: Is there a way to "fix" the first column of a DBGrid to a kind of index like the enumeration in an excel-sheet?

I haven’t tried it…

--- Quote ---
--- End quote ---

works perfectly, thank you so much!
But I did not set it by code (this did not work), but in the object inspector.

to sum up the solution:
Set in the object inspector "fixed cols" to - in my case - the value 2.

There's a FixedCols property in the object inspector of TDBGrid.


[0] Message Index

Go to full version