Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement unbound rows in PropertyGridControl

$
0
0

By default, unbound rows are not supported by PropertyGridControl. So, you can use VGridControl to display them.
However, PropertyGridControl allows you to provide custom property descriptors via the CustomDescriptors Event. So, you can implement the same functionality by creating a custom property descriptor that will store values for properties that do not present in the selected object.

This example demonstrates how this solution can be implemented.

Question Comments

Added By: Jeterson Miranda Gomes at: 3/31/2016 10:37:38 AM    hello, not find object used for UnboundRowsHelper, please, specify dependences for need for this exampleAdded By: Nikita (DevExpress Support) at: 3/31/2016 11:04:11 AM    Hello,
You can download the example runner and the full compilable sample using the link in the Download section: 

I hope this helps.Added By: Frank Link 3 at: 6/13/2016 2:08:04 AM    Hi,

this example doesn't work correctly because i can't see the new properties.

Can you correct them?

regards
FrankAdded By: Dimitros (DevExpress Support) at: 6/13/2016 5:40:52 AM    

Hello Frank,

To solve the issue, call the RetrieveFields method. 

I've updated this example accordingly.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>