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

Set SelectedField

1 Answer 77 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Normen
Top achievements
Rank 1
Normen asked on 06 Nov 2012, 08:21 PM
Hi,
is there any possibility to select a field by code?
(The SelectedField-Property is readonly.)

Thanks for help!
Normen

1 Answer, 1 is accepted

Sort by
0
Normen
Top achievements
Rank 1
answered on 07 Nov 2012, 03:03 PM
I solved my problem with PropertyGridPresenter.

var propPresenter = radProp.ChildrenOfType<PropertyGridPresenter>().First();
propPresenter.SelectedPropertyDefinition = firstNamePropertyDefinition;
Tags
PropertyGrid
Asked by
Normen
Top achievements
Rank 1
Answers by
Normen
Top achievements
Rank 1
Share this question
or