Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » Elegant Grid Tech Support » Enable/Disable the one of the rows in the property grid Collapse All
Subject Author Date
Mallikarjun Lavate Jul 19, 2007 - 11:23 PM

Dear Sir\Madam,

I have one query regarding property grid.

1. Say in One of the row in the property grid we are having the combo box.
2. Choose the appropriate option from Combo Box.
3. After selecting the option atleast one of the rows in the property grid should be enable or disable.


Let me know how to disable or enable the row, which is explained in the step 3.?

Waiting for your fast reply. Thanks in advance

Regards

Lavate Mallikarjun Avanna

Technical Support Jul 20, 2007 - 10:18 AM

This forum is dedicated to Elegant Grid for .NET but you are asking a question about the CExtPropertyGridCtrl class from Prof-UIS.

The property grid control does not support disabled rows, but any grid cell in the property value rows can be read-only. To make a grid cell read only, you should apply the __EGCS_READ_ONLY style to it.

Generally you should override the CExtPropertyGridCtrl::OnPgcInputComplete() virtual method to get notified about the end of editing in the combo box cell, make read-only active cells of other property values and invoke the CExtPropertyGridCtrl::PropertyStoreSynchronize() method to update the property grid.