View Single Post
  #1  
Old 10-16-2016, 01:00 PM
larshgf larshgf is offline
Senior Member
 
Join Date: Jan 2001
Posts: 237
Default Find Index of selected Title in DBGrid

Hi,

It is possible to show the caption of the columns title like here......

procedure TForm1.DBGrid1TitleClick(Column: TColumn);
begin
Showmessage( Column.Title.Caption );
end;


But I Wonder if somebody know how to find the index of the column when you click on the title of this column?

Best Regards
Lars
Reply With Quote