DataGridview - Show only the latest 20record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RafaulWolf
    New Member
    • Apr 2007
    • 10

    DataGridview - Show only the latest 20record

    HI,

    How can limit my data grid view to display only the latest 20 record from an access database?
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by RafaulWolf
    HI,

    How can limit my data grid view to display only the latest 20 record from an access database?
    What do you mean by Latest??? Last saved 20 records??? Then in time of Insertion of your record You have to maintain a Timestamp...kee p the time when the record is Inserted in a table field......then you can track the latest 20 records checking the insertion time...

    Comment

    • klaydze
      New Member
      • Mar 2007
      • 30

      #3
      Originally posted by RafaulWolf
      HI,

      How can limit my data grid view to display only the latest 20 record from an access database?
      my idea with your question is, you can base it to the time when you save your record. you have a column for the time then make a line of query to validate all your records. thats my idea. hehe

      Comment

      • RafaulWolf
        New Member
        • Apr 2007
        • 10

        #4
        Originally posted by dip_developer
        What do you mean by Latest??? Last saved 20 records??? Then in time of Insertion of your record You have to maintain a Timestamp...kee p the time when the record is Inserted in a table field......then you can track the latest 20 records checking the insertion time...

        do you hav a sample of the example? or links to tutorials on such topics?
        THx :)

        Comment

        • prabunewindia
          New Member
          • Mar 2007
          • 199

          #5
          just take only the top 20 rows from table based on date
          and display
          Originally posted by RafaulWolf
          do you hav a sample of the example? or links to tutorials on such topics?
          THx :)

          Comment

          Working...