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. datagrid link button

datagrid link button

Scheduled Pinned Locked Moved ASP.NET
cssdatabasehelp
4 Posts 4 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
    sheemap
    wrote on last edited by
    #1

    "Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out

    rizvan sivally

    K R U 3 Replies Last reply
    0
    • S sheemap

      "Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out

      rizvan sivally

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      sheemap wrote:

      any one can help me to sort out

      Of course I can. Oh, wait, telepathic powers waning... can't quite make out what you need... You need to be a wee bit more specific - not enough to properly assess what you need though this[^] might point you in the right direction.

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      1 Reply Last reply
      0
      • S sheemap

        "Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out

        rizvan sivally

        K Offline
        K Offline
        Karthik Harve
        wrote on last edited by
        #3

        After selecting what data you are getting this exception..?? show your code.. :)

        with regards Karthik Harve

        1 Reply Last reply
        0
        • S sheemap

          "Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out

          rizvan sivally

          U Offline
          U Offline
          uspatel
          wrote on last edited by
          #4

          share your code. When I face this problem,it is due to I have two gridviews and on click of second gridview linkbutton, I was using First gridview index.Thats the mistake. FOr Gridview2 I was used

          int index = Convert.ToInt32(e.CommandArgument);
          GridViewRow row = GridView1.Rows[index];//here should be GridView2.Rows[index]

          so ckeck for same.

          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