How to select an item into Docking Manager Document? The item is added dynamically and I need to select it for updates. I have n documents added dynamically.
For example. I pass a Docking Manager and the child component name and return an specific component
private SfDataGrid GetDataGridFromDockingManager(DockingManager parent, string dataGridName)
{
foreach (var item in parent.Children)
{
if (item.GetType() == typeof(SfDataGrid))
{
if (item.ContentId == dataGridName)
{
return (SfDataGrid)item.Content;
}
}
}
return null;
}