Najem
Najem

Reputation: 557

Attach TEdit boxes to a TDBgrid column

How can I attach the edit boxes to the corresponding grid columns, so it will change width when the user change the column width and move around when the user change the order of DBGraid columns.

Example of the form

Upvotes: 1

Views: 340

Answers (1)

David Heffernan
David Heffernan

Reputation: 613521

If you want to know that the column widths have changed then you can override ColWidthsChanged. I'm not aware of a corresponding event.

For detecting columns having moved you can either override ColumnMoved or attach a handler to the OnColumnMoved event.

Upvotes: 1

Related Questions