Hi.
Datagridview showing my db's data. How can I show, last entry on top? When I add a new row in data, its getting last order in db. But in datagrivew I want to show last is first. How can i do that?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
arun sharmaPosted Sep 28, 2009, 2:42 PM
In stored procedure you need to add order by clause with primary key.
Like : SELECT EmpName,Age,Salary
from Emp
WHERE Salary > 12000
Order By EmpId // EmpId is the Primary key
enjoy....
Arun sharma