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. General Programming
  3. C#
  4. How to Dynamically populate Checkbox in Gridview asp.net 2.0

How to Dynamically populate Checkbox in Gridview asp.net 2.0

Scheduled Pinned Locked Moved C#
csharpasp-nethelptutorial
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
    SJSaranya
    wrote on last edited by
    #1

    I need code in C# to populate checkbox in gridview to delete records. Please help. Thank you Saranya

    F 1 Reply Last reply
    0
    • S SJSaranya

      I need code in C# to populate checkbox in gridview to delete records. Please help. Thank you Saranya

      F Offline
      F Offline
      fearless stallion
      wrote on last edited by
      #2

      SJSaranya wrote:

      populate checkbox in gridview to delete records.

      Add a column to the datatable, which you want to assign as a data source to the gridview like the following dataTable1.Columns.Add("Name of My Column for the checkbox",typeof(bool),"0"); assign it as datasource.

      kss

      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