Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 29 Mar 2024, 09:38

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 14 Mar 2018, 15:37 
Offline

Joined: 14 Mar 2018, 15:34
Posts: 7
Simple problem, most of the Time. But not with DBGridEh. There is no Index-property, no Move-Method or something like this. Documentation is slim, most of the time you see "This is %s, a member of class %s"...

So: How do I move a DBGridEh-column in code ? Maybe I already stumbled across the right thing without noticing it...


Top
 Profile  
 
PostPosted: 14 Mar 2018, 21:36 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Use Column.Index propery

Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
  DBGridEh1.Columns[0].Index := 1;
end;

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group