Hello,
scrolling to a row with:
radGridView1.GridElement.ScrollToRow( rownumber );
works fine in many cases but in the following 2 cases:
case 1:
The grid contains fewer rows than it can display.
For example the grid can display 10 rows and it contains only 5 rows.
Now i add a new row which appears as last row and use the ScrollToRow(6).
What happens:
I see only one row ( my newly added row number 6 ) and on the right sight a scrollbar appears.
For me it's very confusing to see only one row when i know that there are 5 more rows.
What should happen:
All rows of the grid should be displayed, because no scrolling is necessary and no scrollbar should appear.
case 2:
The grid contains more rows than it can display and the scrolling goes to a row in the range <MaxRows - DisplayableRows, MaxRows>.
For example the grid contains 99 rows and it can display 10 rows.
Now i add a new row which appears as last row ( 100 ) and use the ScrollToRow( 100 )
What happens:
I see only one row ( my newly added row number 100 ).
What should happen:
The grid should show the rows 90 - 100.
Is it possible to solve the two cases ?
Kind Regards,
Ramius
scrolling to a row with:
radGridView1.GridElement.ScrollToRow( rownumber );
works fine in many cases but in the following 2 cases:
case 1:
The grid contains fewer rows than it can display.
For example the grid can display 10 rows and it contains only 5 rows.
Now i add a new row which appears as last row and use the ScrollToRow(6).
What happens:
I see only one row ( my newly added row number 6 ) and on the right sight a scrollbar appears.
For me it's very confusing to see only one row when i know that there are 5 more rows.
What should happen:
All rows of the grid should be displayed, because no scrolling is necessary and no scrollbar should appear.
case 2:
The grid contains more rows than it can display and the scrolling goes to a row in the range <MaxRows - DisplayableRows, MaxRows>.
For example the grid contains 99 rows and it can display 10 rows.
Now i add a new row which appears as last row ( 100 ) and use the ScrollToRow( 100 )
What happens:
I see only one row ( my newly added row number 100 ).
What should happen:
The grid should show the rows 90 - 100.
Is it possible to solve the two cases ?
Kind Regards,
Ramius