Hi,
Changing the properties of the cell template will not immediately affect the user interface (UI) of the column's existing cells. These changes are only apparent after the column is regenerated (for example, by sorting the column or through a call to the DataGridView.InvalidateColumn method). (From DataGridViewCheckBoxColumn.CellTemplate Property msdn document)
For unbound column, you’d better set the value in DataGridView_DefaultValueNeed event.
void dataGridView1_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
{
e.Row.Cells["checkColumn"].Value = true;
}
Or set the DefaultCellStyle.NullValue.
chkcolumn.DefaultCellStyle.NullValue = true;
Then you can get the true value by
dataGridView1.CurrentRow.Cells["checkColumn"].FormattedValue property.
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.