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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. GridView

GridView

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadmintutorial
2 Posts 2 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.
  • S Offline
    S Offline
    senthilsstil
    wrote on last edited by
    #1

    Hi Friends, I m using GridView,in my gridview i m having template column in that template column button was there.If i click the button the corresponding row id should get i have wrote the coding as int index = Convert.ToInt32(e.CommandArgument); GridViewRow gr = grd_quantity.Rows[index]; ListItem lt = new ListItem(); lt.Text = Server.HtmlDecode(gr.Cells[0].Text); But for me e.CommandArgument getting null and gives error input string was not in correct format.Please help me how to get the id. Thanks & Regards Senthil Kumar

    E 1 Reply Last reply
    0
    • S senthilsstil

      Hi Friends, I m using GridView,in my gridview i m having template column in that template column button was there.If i click the button the corresponding row id should get i have wrote the coding as int index = Convert.ToInt32(e.CommandArgument); GridViewRow gr = grd_quantity.Rows[index]; ListItem lt = new ListItem(); lt.Text = Server.HtmlDecode(gr.Cells[0].Text); But for me e.CommandArgument getting null and gives error input string was not in correct format.Please help me how to get the id. Thanks & Regards Senthil Kumar

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      activityorder = (Request.QueryString["actorder"]); then use stringname = (Request.QueryString["firstvar"]); to get it hope this helps :)

      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