CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Posts
    23

    How to get the ID of the Selected Row of the GridView?

    Respected Fellows,
    I have showed my data on a form in gridview. Now i want that when i click on a cell on a grid view it should get the Row Id of that selected row. Please tell me how can i do that?.

  2. #2
    Join Date
    Mar 2004
    Posts
    223

    Re: How to get the ID of the Selected Row of the GridView?

    Isnt it that simple? gridview.SelectedRow.index or CUrrentRowIndex mus work. Doesnt it>?

    [If you find my answers useful, please leave your comments and rating for it.]
    Happy Coding!
    My Dev.: MS VS 2005 Version 8.0.50727.42 .NET 2.0.50727
    Mark your answers Tools>>RESOLVED once its answered.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured