Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello All,
I want after add new row in datagridview ,display my last row top of datagridview,
I do not want use scroll bar to see that
Updated 4-Apr-17 12:26pm

change the orderby desc of the primary key(identity) of table.(new inserted record will always have max identity value and if its in order accesnding so the last value will be first)
Share this answer
You can change the sort order of the datagridview. Have a look at: Sorting Data in the Windows Forms DataGridView Control[^]
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