Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Bind with GridView

Bind with GridView

Scheduled Pinned Locked Moved ASP.NET
wpfwcfhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    johnmuthu
    wrote on last edited by
    #1

    I am binding two template fields,with two buttons like edit and delete,with gridview. Now during run time, I am binding a datatable with gridview.(say about 5 rows.) Now,when i click on edit button,i want the rowindex of the clicked row. I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only. Please advice, that what may i do. Thanks.

    Muthu.G

    P V 2 Replies Last reply
    0
    • J johnmuthu

      I am binding two template fields,with two buttons like edit and delete,with gridview. Now during run time, I am binding a datatable with gridview.(say about 5 rows.) Now,when i click on edit button,i want the rowindex of the clicked row. I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only. Please advice, that what may i do. Thanks.

      Muthu.G

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      johnmuthu wrote:

      I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only.

      What is the error? If you don't explain what the problem is, it's unlikely someone is going to be able to help you find a solution.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      1 Reply Last reply
      0
      • J johnmuthu

        I am binding two template fields,with two buttons like edit and delete,with gridview. Now during run time, I am binding a datatable with gridview.(say about 5 rows.) Now,when i click on edit button,i want the rowindex of the clicked row. I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only. Please advice, that what may i do. Thanks.

        Muthu.G

        V Offline
        V Offline
        Venkatesh Mookkan
        wrote on last edited by
        #3

        Which event are you using to capture the Edit button's click?

        Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups