Hi
We are facing a problem with Grid control.
We are having Grid with Row details.
We are opening the row details and modifying the values in it. After modifying we need to save the data. After Saving the data, We will get complete object which should rebind data to grid.
Our problem:
After rebinding the grid, we need to show the row details columns which was expanded before.
If the user tries this scenario without scrolling the grid down or for the first time it is working fine.
If the user selects the row by scrolling down, after rebinding the row is getting closing. We tried to expand the row as follows
private void TDataGrid_RowLoaded(object sender, RowLoadedEventArgs e)
{
PaymentDetailSummary rowValue = e.Row.DataContext as PaymentDetailSummary;
if (toggledEmploymentId > 0 && rowValue.EmploymentID == toggledEmploymentId && EmployeeDetails.Items.Count > 0)
{
GridViewGroupRow groupRow = (GridViewGroupRow)this.EmployeeDetails.ItemContainerGenerator.ContainerFromIndex(groupIndex);
GridViewRow row = (GridViewRow)groupRow.ItemContainerGenerator.ContainerFromIndex(groupRowIndex);
if (row != null)
{
row.IsSelected = true;
row.DetailsVisibility = Visibility.Visible;
EmployeeDetails.ScrollIntoView(row);
}
toggledEmploymentId = 0;
}
}
Could you please help us.
We are using the following Version "2009_3_1208".
Regards
Srinivas