Subject Re: Prevent grid from getting into "edit" mode
Author Mihai Chezan
--- In, Daniel Albuschat <daniel@v...>
> There pops up another question: I've inserted a constant for
> your_column so far, but this of course may be variable since
> the user can change the order of the columns in the grid.
> In my example, the user can take a column with some text in it,
> drag it to the position where the icon was first, and the icon
> will be drawn over the text.
> Is there an event I can jump in to recognize the change of column
> ordering?
replace the if ACol = your_column with:

with GridXXX do
if GridFields[DataCol[ACol]].FieldName = 'your field name') then