Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 10-17-2016, 10:22 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,333
Default

Column.Index perhaps?
Reply With Quote
  #3  
Old 10-17-2016, 01:23 PM
larshgf larshgf is offline
Senior Member
 
Join Date: Jan 2001
Posts: 237
Default

Thanks Norrit. Embarrasing :-/
Reply With Quote
  #4  
Old 10-17-2016, 02:32 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,333
Default

Happens to all of us from time to time ;-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.