Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using vb.net datagridview in my application when I contain more than 100 row when I edit 60th row and bind the grid after completing edit I need the 60th row is visible but It move to the first row
Posted

1 solution

Try setting FirstDisplayedScrollingRowIndex, just don't forget to reset it when you do something that should return you to the beginning :)

C#
// set FirstDisplayedScrollingRowIndex to whatver you want to have visible. 
yourGrid.FirstDisplayedScrollingRowIndex = yourGrid.CurrentRow.Index;


NOTE: currentRow.Index may or may not be exact code, but you get the idea...

IF this helps please take time to accept the solution. Thank you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900