Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 19 Apr 2024, 01:11

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 26 Jun 2013, 22:19 
Offline

Joined: 13 Jun 2013, 23:47
Posts: 18
Can we make a button click in a column on a grid?

TIA


Top
 Profile  
 
PostPosted: 27 Jun 2013, 13:15 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
Hello

I'm not sure I understand your question exactly.

Do you want to have data cells in the column that looks like a button with possibilite to click?

If yes, then unfortunately grid doesn't allow to make cell work as a Button (or Button image).

But you can adjust edit inplace buttons:

Set Column.AlwaysShowEditButton = True

Cretare new EditButton in Column.EditButtons collection
and set
Column.EditButton[0].Style = ebsEllipsisEh (for example)
Column.EditButton[0].Width = 50 (any width)
Column.EditButton[0].OnClick = DBGridEh1Columns0EditButtons0Click (click event handler)

Best regards
Admin

_________________
Best regards
Admin


Top
 Profile  
 
PostPosted: 29 Jun 2013, 14:18 
Offline

Joined: 13 Jun 2013, 23:47
Posts: 18
I have tried as per the instructions but I am confused about where I should put the program code. please be clarified.

TIA


Top
 Profile  
 
PostPosted: 29 Jun 2013, 15:06 
Offline

Joined: 11 Apr 2013, 06:51
Posts: 13
That is not program code, you can set it up in designer


Top
 Profile  
 
PostPosted: 30 Jun 2013, 00:15 
Offline

Joined: 13 Jun 2013, 23:47
Posts: 18
I have got it.


TIA


Top
 Profile  
 
PostPosted: 26 Jun 2018, 07:05 
Offline

Joined: 24 Oct 2013, 05:41
Posts: 3
I followed those instructions, got a button appearing, but the method I hooked up to the OnClick event doesn't fire when I click the button. How is it supposed to work?


Top
 Profile  
 
PostPosted: 26 Jun 2018, 08:43 
Offline

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

Can you send your Form or Demo Form or Demo project with the button and event handler to the support@ehlib.com .

_________________
Best regards
EhLib Support Team


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 7 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