Click here to Skip to main content
11,929,971 members (59,818 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB
How do I add a check box in a datagridview in
Posted 15-Dec-09 2:29am
Edited 9-Dec-10 22:29pm
Dalek Dave433.2K
Dalek Dave 10-Dec-10 3:29am
Minor Edit for Grammar.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You could do this by using the VS IDE[^].

This can be done also by writing some code. Wink | ;)

Here is an example for you:
 ' Create new column of type: DataGridViewCheckBoxColumn
Dim checkCol As DataGridViewCheckBoxColumn = New DataGridViewCheckBoxColumn()
checkCol.HeaderText = "CheckBox Column"
' Add this column to the DataGridView

I hope this helps! Smile | :)

RaviRethi 26-Jul-13 0:55am
Thank you so much
Dalek Dave 10-Dec-10 3:30am
Good Answer.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

i need to display the column from dataset also, and as well as dynamically also (like using above code)..
can anyone help me in this??
Dalek Dave 10-Dec-10 3:30am
Best to ask this as a new Question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 10 Dec 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100