Results 1 to 2 of 2

Thread: How do i get the last selected row in a datagridview

  1. #1
    calixto_67 is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    May 2012
    Posts
    1
    Reputation
    0

    Unhappy How do i get the last selected row in a datagridview

    I am trying to save a record selected in my datagridview but after i save it and then update the record on my database the selected row point to the first row in my database. Is it possible to retain the selected row after i save it.

    Please help me guys....

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,331
    Reputation
    1543
    There's no reason that saving a record should have any effect on the selection in a grid. If that's happening in your case then you're doing it wrong. As we haven't seen what you're doing, we can't see what's wrong with it.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking