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. checkbox gridview

checkbox gridview

Scheduled Pinned Locked Moved ASP.NET
help
5 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.
  • M Offline
    M Offline
    mcad
    wrote on last edited by
    #1

    I am working on this problem a couple of days, I did not get solution. in my web page , there is a gridview with a checkbox templatefield I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false. protected void Button1_Click(object sender, EventArgs e) { string EmpId=""; //bool chkBox=false ; foreach (GridViewRow row in GridView1.Rows) //for(int row=0;row", EmpId); } }

    V V 2 Replies Last reply
    0
    • M mcad

      I am working on this problem a couple of days, I did not get solution. in my web page , there is a gridview with a checkbox templatefield I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false. protected void Button1_Click(object sender, EventArgs e) { string EmpId=""; //bool chkBox=false ; foreach (GridViewRow row in GridView1.Rows) //for(int row=0;row", EmpId); } }

      V Offline
      V Offline
      varshavmane
      wrote on last edited by
      #2

      Post ur code properly.

      M 1 Reply Last reply
      0
      • V varshavmane

        Post ur code properly.

        M Offline
        M Offline
        mcad
        wrote on last edited by
        #3
        I 1 Reply Last reply
        0
        • M mcad
          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          Check Ignore HTML tags in this message (good for code snippets) Check box and paste HTML code Best Regard Pathan

          ---------------------------------------------------

          1 Reply Last reply
          0
          • M mcad

            I am working on this problem a couple of days, I did not get solution. in my web page , there is a gridview with a checkbox templatefield I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false. protected void Button1_Click(object sender, EventArgs e) { string EmpId=""; //bool chkBox=false ; foreach (GridViewRow row in GridView1.Rows) //for(int row=0;row", EmpId); } }

            V Offline
            V Offline
            vidyasankar 0
            wrote on last edited by
            #5

            hai, try this one, CheckBox chkbox = new CheckBox(); foreach(DataGridItem item in gridsearch.Items ) { chkbox=(CheckBox)item.FindControl("chkbox"); if(chkbox.Checked) { //if its true code here// } } Regards vidya

            pain gives gain

            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