I need to delete row and add row in a ultragrid over and over,
in this process,the ultragrid will autoscroll to the end row.
How to make the ultragrid fix at the first row during deleting adding row.
Im sorry,I solved the problem but not reply here in time.
solved by code below
grid.BeginUpdate()
'' do delete row
'' do add row
grid.EndUpdate()
thank you.
The grid is probably scrolling because it's synchonizing it's own ActiveRow with the current position of the BindingManager, and the grid will try to scroll the ActiveRow into view whenever it changes.
So what you can do is set SyncWithCurrencyManager on the grid to false.
can you post any code you are using here ?