You can add them to your DataGridView. Like this:
var checkBox = new DataGridViewCheckBoxColumn
{
Name = "checkBox",
HeaderText = @"checkBox",
Width = 70
};
//Set other properties...
dataGridView1.Columns.Add(checkBox);
And same for Image:
DataGridViewImageColumn image = new DataGridViewImageColumn();
//....
Also if you want the new column to be appear in another column you can replace dataGridView1.Columns.Add(checkBox); with following:
dataGridView1.DataSource = dt;
var checkBox = new DataGridViewCheckBoxColumn
{
Name = "checkBox",
HeaderText = @"checkBox",
Width = 70
};
//Set other properties...
dataGridView1.Columns.Insert(1, checkBox);
And if you want to add it to your DataTable you can add it as boolean field in the DataTable:
dt.Columns.Add(new DataColumn("checkBox", typeof(bool)));
dataGridView1.DataSource = dt;
So when you bind the DataTable to your DataGridView, a CheckBoxColumn is created for this boolean field.
DataGridViewlike thisdataGridView1.Columns.Add(new DataGridViewCheckBoxColumn());