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. General Programming
  3. C#
  4. data grid

data grid

Scheduled Pinned Locked Moved C#
csshelpquestion
4 Posts 3 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.
  • W Offline
    W Offline
    webhay
    wrote on last edited by
    #1

    Hello All, please i need to know how can i put a checkbox in column in the datagrid control but with easy steps.in windows control not in webcontrol please help hay

    A R 2 Replies Last reply
    0
    • W webhay

      Hello All, please i need to know how can i put a checkbox in column in the datagrid control but with easy steps.in windows control not in webcontrol please help hay

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

      Check out this article on 4guysfromrolla.com. It's the best thing out there (IMO) for adding a checkbox column in a datagrid. An Extensive Examination of the DataGrid Web Control: Part 11[^] Pegmeister

      W 1 Reply Last reply
      0
      • A aplope

        Check out this article on 4guysfromrolla.com. It's the best thing out there (IMO) for adding a checkbox column in a datagrid. An Extensive Examination of the DataGrid Web Control: Part 11[^] Pegmeister

        W Offline
        W Offline
        webhay
        wrote on last edited by
        #3

        Thanks about your reply but i need it with Windows control not in web control

        1 Reply Last reply
        0
        • W webhay

          Hello All, please i need to know how can i put a checkbox in column in the datagrid control but with easy steps.in windows control not in webcontrol please help hay

          R Offline
          R Offline
          Robert Rohde
          wrote on last edited by
          #4

          When binding e.g. a DataTable to the grid you only need to add a column with boolean type to it. When binding the grid will automatically generate the checkbox style for the grid. If you are organizing the styles yourself you have to use the class DataGridBoolColumn. If your are not familiar with TableStyles and ColumnStyles you should read about them in the MSDN (they are rather well documented - search for DataGridTableStyle and DataGridColumnStyle)).

          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