Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtPropertyGridCtrl and CExtGridCellButton Collapse All
Subject Author Date
exp lnt Jul 9, 2008 - 2:05 AM

Hello !

I have used a CExtGridCellButton in a PropertyGridCtrl.

How to capture event OnClick() when pressing to the button ?

I also overrided Apply(..) method but seem it was not ineffective.

If i used a CExtGridCellCheckBox or another control, everything is fine.

Thank for your help,

Technical Support Jul 12, 2008 - 10:39 AM

When you set/unset check box in the CExtGridCellCheckBox grid cell, then it’s cell state is changed and you are notified via Apply() method. But neither cell data nor cell state become changed when the cell’s button is pressed. That is why Apply() method is not invoked on cell button click. Please create and use your own CExtGridCellButton-derived cell class and override the CExtGridCell::OnButtonPressed() virtual method in it.