This is a migrated thread and some comments may be shown as answers.

Get Property Name from SelectedField property

1 Answer 91 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Akram
Top achievements
Rank 1
Akram asked on 13 Dec 2012, 04:07 PM
Hi
How can i get the name of the property represented in the RadPropertyGeid.SelectedField

Thanks,
Akram

1 Answer, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 18 Dec 2012, 10:46 AM
Hi Akram,

 You can cast the DataContext of RadPropertyGrid's SelectedField as a PropertyDefinition and then you can get its DisplayName. Please check the following code snippet for a reference:

this.PropertyGrid1.SelectedField.DataContext as PropertyDefinition).DisplayName


Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PropertyGrid
Asked by
Akram
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or