Using RadGridView, I'm attempting to programmatically select a row and bring it into view. Code works, unless the row is within a collapsed group. If the row is within a collapsed group, I get an Out Of Range Exception.
How can I identify and expand the containing groups or otherwise work around this problem?
Thank you!
Bob
Code follows:
foreach (DataRowView rowView in vm.ResultSet.DefaultView)
{
if (rowView["UWI"].ToString().Trim() == uwi)
{
vm.SelectedRowView = rowView;
WellsGridView.BringIndexIntoView(WellsGridView.Items.IndexOf(WellsGridView.SelectedItem));
break;
}
}
How can I identify and expand the containing groups or otherwise work around this problem?
Thank you!
Bob
Code follows:
foreach (DataRowView rowView in vm.ResultSet.DefaultView)
{
if (rowView["UWI"].ToString().Trim() == uwi)
{
vm.SelectedRowView = rowView;
WellsGridView.BringIndexIntoView(WellsGridView.Items.IndexOf(WellsGridView.SelectedItem));
break;
}
}