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

RadPropertyGrid and UITypeEditor

1 Answer 117 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Radoslaw
Top achievements
Rank 1
Radoslaw asked on 22 Nov 2011, 11:39 AM
Hi,

    It is possible to get RadPropertyGrid instance from EditValue function (from UITypeEditor class) ?

Regards
Radek

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 24 Nov 2011, 04:50 PM
Hello Radoslaw,

Thank you for writing.

You can get the RadPropertyGrid from inside the EditValue method using the following code snippet:

PropertyGridItem item = context as PropertyGridItem;
if (item != null)
{
  RadPropertyGrid grid = item.PropertyGridTableElement.ElementTree.Control as RadPropertyGrid;
}

I hope this will help. Should you need further assistance, I would be glad to provide it.
Kind regards,
Ivan Petrov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Tags
PropertyGrid
Asked by
Radoslaw
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or