Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5C#
Hi,
Have a problem with grid bind.
The data which I insert in the grid, it takes any random row.
Whereas, what I want is the inserted data to occupy the very first row.
Thanks any help will be appreciated.
Posted 13-May-12 21:03pm
A_S_A392

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

When you insert the data in database add a datetime column and insert the datetime of insertion along with the record, now while retreiving the data sort the data by that datetime column in descending order.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 372
1 OriginalGriff 295
2 thatraja 215
3 Emre Ataseven 155
4 Shai Vashdi 125
0 Sergey Alexandrovich Kryukov 8,849
1 OriginalGriff 5,035
2 Peter Leow 3,949
3 Maciej Los 3,535
4 Abhinav S 3,148


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 14 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid