Hi Mekalamani, see the below example,
DataTable objTable = new DataTable();
objTable.Columns.Add("Selection", typeof(bool));
objTable.AcceptChanges();
DataRow NewRow1 = objTable.NewRow();
NewRow1["Selection"] = false;
objTable.Rows.Add(NewRow1);
DataRow NewRow2 = objTable.NewRow();
NewRow2["Selection"] = true;
objTable.Rows.Add(NewRow2);
objTable.AcceptChanges();
dataGridView1.DataSource = objTable;
Here, when assigning
objTable to
dataGridView1.DataSource, the DataGridView automatically display the boolean values as checkbox column. Like this, you can make your datatype to bool for your data, which is to be displayed as DataGridViewCheckBoxColumn.