Hi, Boki:
I would like to apply the same event code to each column for my old code for NG6, OnHeaderClick:
// allow selection of column, mainly for deleting columns; otherwise dbl click
// brings up column editor
IF TV.EditTreeTable THEN
BEGIN
WITH GridView1 DO
BEGIN
SelectedColumn := ACol;
GridHeaderClick := true;
// change tbDeleteColumn hint if Hidden;
if Pos('$T', string(Columns[ACol].Footer.Caption)) > 0 then
tbDeleteCol.Hint := 'Restore Hidden Column'
else
tbDeleteCol.Hint := 'Delete/Hide Column';
END
I am quessing that I could do this by referencing this code within the Grid.Column.OnHeaderClick or the GridView.OnHeaderMouseDown? I am thinking that the OnHeaderMouseDown would be best to handle all grid column headers the same way, yes?
Also, I do not see a OnHeaderDblClick. Is there some way to handle a dbl click via this event? I am thinking the TShiftState of ssDouble would be the best way to do this in the OnHeaderMouseDown event.
Can you please confirm?
Thank you,
Chuck