views:

108

answers:

1

I'm looking for a good way to programmatically initiate editing on a System.Windows.Forms.PropertyGrid. I can select the GridItem that I want, but that doesn't move the cursor into the edit field.

A: 

Did you try sending the TAB key?

private void propertyGrid_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e)
{
    SendKeys.Send("{TAB}");
}
Nicolas Cadilhac