public static bool GetBooleanValue(this DataGridView gv, int RowIndex, int ColIndex) { DataGridViewCell cell = gv.Rows[RowIndex].Cells[ColIndex]; return(cell.GetBooleanValue()); }