I have bound datagridview
by datatable
of Database on form Load in windows form application and I Want to add a column containing check box.. So whatever is showing can be checked.
You can add easily DataGridViewCheckBoxColumn to your DataGridView Columns:
// Create new Checkbox Column
DataGridViewCheckBoxColumn myCheckedColumn = new DataGridViewCheckBoxColumn()
{
Name = "Checked Column", FalseValue = 0 , TrueValue = 1 , Visible = true
};
// add the new column to your dataGridView
myDataGridView.Columns.Add(myCheckedColumn);
I hope that helps you!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With