http://tv.devexpress.com/XtraVerticalGrid03.movie
Download Transcript: PDF Word XPS
Transcript
In this lesson, I’ll show you how to display and edit the settings for a button via the property grid control.
1. Let’s drop the “Property Grid Control” onto a form and dock it to the form’s right.
2. To display the settings for the button within the “Property Grid Control”, I bind it to the grid, via the “Selected Object” property.
3. The “Property Grid Control” automatically retrieves public properties from the bound object and creates a row layout.
4. Since the “Property Grid Control” implements the functionality provided by our VerticalGrid, the row layout can be customized within the designer.
5. I can, for example, rearrange rows, customize the row settings, assign editors to edit cell values, change the appearance settings, and more…
6. I’ll close the designer now and run the application to see the result.
7. Our “Property Grid Control” displays the settings for the button and allows them to be changed.
8. I can change the button’s caption for example.
9. For another example, let’s change its style.
10. The “Property Grid Control” can be bound to any object.
To learn more, please see the XtraVerticalGrid’s Help Documentation