Jump to content


Photo

DBGrid editing - OnEditButtonClick

dbgrid OnEditButtonClick

  • Please log in to reply
2 replies to this topic

#1 arilotta

arilotta

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 66 posts
  • LocationTrieste, Italy

Posted 07 December 2017 - 02:41 PM

Hi, in VCL DbGrid there is the possibility for a column to pick up a customized editor (a dialog), by setting the column ButtonStyle to cbsEllipsis and managing the OnEditButtonClick event.
UniGUI already implements various DbGrid editors (UniEdit, UniCombo, UniDBLoockUpComboBox, NumEdit, etc.).
 
In some cases, especially when there are many values to choose from, I think that the ellipsis button that could open a specialized dialog is the best solution. (and maybe it is not too difficult to implement...)
 
Thanks
Andrea
 

  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 07 December 2017 - 05:46 PM

Hi,

 

At the moment maybe like these solutions ?!:

 

http://forums.unigui...rid/#entry37218

http://forums.unigui...rid/#entry37228


  • 0

#3 arilotta

arilotta

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 66 posts
  • LocationTrieste, Italy

Posted Yesterday, 09:54 AM

Hi Delphi Dev, the solution puts a button when the dataset is in browse mode.

On the contrary, for my needs, it should be visible just in edit/insert mode, and in browse mode

the column should show just the column field value.

 

Thank you


  • 0





Also tagged with one or more of these keywords: dbgrid, OnEditButtonClick

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users