Home Forums WPF controls Xceed DataGrid for WPF How to programmatically set GlobalSelectedItem?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26820 |

    Is there a way from C# to set an object 4 Relations deep as the currently selected item in the DataGridControl?

    Imported from legacy forums. Posted by MiddleTommy (had 571 views)

    Xceed Support
    Member
    Post count: 5658

    The only way to do that would be to have access to the DataGridContext for the object 4 relations deep and add the object to its DataGridContext`s SelectedItems collection.

    Because DataGridContext instances exist only for “expanded” details, it would be impossible to do that if the details are not expanded.

    If the details are indeed expanded, then you can use the DataGridContext/DataGridControl.GetChildContext() method.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2003 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.