Click here to Skip to main content
15,796,456 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to add a check box at run time in datagridview but not able to.
Posted
Updated 24-Jan-11 2:36am
v3

Did you try something like:
VB
Dim chkBoxCol As New DataGridViewCheckBoxColumn        
DataGridView1.Columns.Add(chkBoxCol)
 
Share this answer
 
you haven't show your effort so I am little confuse about your question
you can use given code to add checkbox in datagridview at runtime
VB
Dim obj As New DataGridViewCheckBoxColumn
        DataGridView1.Columns.Add(obj)

and if you want to add checkbox while reading and displaying data to gridview then i will suggest you to read this[^] article
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900