Change Scrollbar behavior
Hi,
We have a requirement that new records that get added to a grid are added to the bottom of the grid, but the user should be able to see the record when its being added. So in effect, the scroll bar should be docked to the bottom and as records come in, it should stay at the bottom. So only a few rows in the bottom of the grid are always visible, we will need to scroll up to see the oldest record. Is there a way for us to override the grid's default scroll behavior to achieve this result.
Please let me know,
Thanks,
Deepak
0
-
Dear Deepak,
Please find an example demonstrating how to achieve this behavior:
grid.RowAdded += delegate(object sender, GridRowEventArgs e)
{
e.Row.EnsureVisible();
};Best regards,
Dapfor
0
Please sign in to leave a comment.
Comments
1 comment