Grid position is not proper after reload the data. Winforms radgridview we are using.
Grid is having huge data with headers and child grids (Nested grid).
The issue is related to grid position after data save.
User will expand the grid including header ,child and do some edits and save the records.
After save the grid position we are trying to set from code. As a part of the save function grid data will be reloaded and then we are expanding the headers and child grid same as how the user kept.
Below two properties are not consistent before save and after data reload.
rdGrid.VerticalScroll.Maximum
rdGrid.VerticalScroll.Minimum
Other than setting these properties how we can set the grid position. Thanks in Advance
int position = vScroll.Maximum ;
bool isMaxValue = position == vScroll.Maximum - vScroll.LargeChange + 1;
if (isMaxValue)
{
position = vScroll.Maximum - vScroll.LargeChange + 1;
}
rdGrid.TableElement.VScrollBar.Value = position;