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. asp.net gridview

asp.net gridview

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
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.
  • R Offline
    R Offline
    romanilipuni
    wrote on last edited by
    #1

    Hi will you tell me the code for writing checkbox within gridview whether it is check or uncheckable.

    A G M 3 Replies Last reply
    0
    • R romanilipuni

      Hi will you tell me the code for writing checkbox within gridview whether it is check or uncheckable.

      A Offline
      A Offline
      ais07
      wrote on last edited by
      #2

      CheckBox Chk1 = new CheckBox(); for(int i=0; GridViewName.Rows.Count; i++) { Chk1 = (CheckBox)GridViewName.Rows[i].FindControl("checkboxname"); if (Chk1.Checked == true) { ///operation which you want to perform } }

      Life Is Beautiful

      1 Reply Last reply
      0
      • R romanilipuni

        Hi will you tell me the code for writing checkbox within gridview whether it is check or uncheckable.

        G Offline
        G Offline
        Gaurav Dudeja India
        wrote on last edited by
        #3

        use asp:TemplateField <HeaderTemplate> <asp:CheckBox ID="cbSelectAll" runat="server" /> </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" /> </ItemTemplate> </asp:TemplateField>

        1 Reply Last reply
        0
        • R romanilipuni

          Hi will you tell me the code for writing checkbox within gridview whether it is check or uncheckable.

          M Offline
          M Offline
          m dhu
          wrote on last edited by
          #4

          did you try any thing?? first google their lots of articles about that..

          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