Click here to Skip to main content
15,900,589 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone....
Dynamically i have created a datagridview and dynamically i want to add
DataGridViewCheckBoxCell when datagridview add rows.
how it would be possible in C#.net?

Thank You
Posted

Your question is not so clear. In spite of that whatever I understood from your question is (If I am not wrong) you want to add DataGridViewCheckBoxColumn to your DataGrid dynamically.
Try this to add DataGridViewCheckBoxColumn dynamically in your datagridview.
C#
DataGridViewCheckBoxColumn chk = new DataGridViewCheckBoxColumn();
dataGridView1.Columns.Add(chk);
chk.HeaderText = "Check Data";
chk.Name = "chk";




--Amit
 
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