Visibility of check box in Datagrid view of Windows Form.

Nov 9 2015 12:24 AM
foreach (DataGridViewRow row in dvgCbs3Prod.Rows)
{
if (Convert.ToDecimal(dvgCbs3Prod.Rows[row.Index].Cells[10].EditedFormattedValue) == 0)
{
dvgCbs3Prod.Rows[row.Index].Cells[10].Value = DBNull.Value;
//dvgCbs3Prod.Rows[row.Index].Cells[10] = new DataGridViewTextBoxCell();
}
else
{
dvgCbs3Prod.Rows[row.Index].Cells[10].Visible= false;
}
}
Guys I am using this code but it is not ....Plz suggest me how to hide the check box of a particular cell in datagrid view