Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > How to add a checkbox control in a column
 

How to add a checkbox control in a column

how to add a check box control in a column of a Data Table..
SankarK  Thursday, October 26, 2006 5:39 AM

Hi,

You don't add a CheckBox control to a DataTable. You add it either to a DataGrid or DataGridView depending on what framework version you use.

If you use 2.0, then you can add a DataGridViewCheckBoxColumn to your DataGridView, and bind it to a column of a type containing boolean data.

Hope this helps.

Luc

Luc Morin  Thursday, October 26, 2006 11:05 AM

Hi,

You don't add a CheckBox control to a DataTable. You add it either to a DataGrid or DataGridView depending on what framework version you use.

If you use 2.0, then you can add a DataGridViewCheckBoxColumn to your DataGridView, and bind it to a column of a type containing boolean data.

Hope this helps.

Luc

Luc Morin  Thursday, October 26, 2006 11:05 AM

You can use google to search for other answers

Custom Search

More Threads

• BindingSource.Filter
• Problem inserting a new record with VB 2005 using a table adaptor and SQL 2005 Express
• can i copy two relational records
• allow jus 40 charchaters in cell of the datagridview????
• Limiting the number of records displayed by a DataView (without affecting the underlying DataTable)
• GetChanges?
• DataGrid rows not editable
• How to Databind Control
• Tab order Problem
• Textbox bound to Integer field will not allow blanks