Get Property Name from SelectedField property

2 posts, 1 answers
  1. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 13 Dec 2012 Link to this post

    Hi
    How can i get the name of the property represented in the RadPropertyGeid.SelectedField

    Thanks,
    Akram
  2. Answer
    Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 18 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top