dgvSourceColumns_CellContentClick
(
object sender,
DataGridViewCellEventArgs e
)
{
AssertValid();
dgvSourceColumns.EndEdit();
DataGridViewRow oDataGridViewRow = dgvSourceColumns.Rows[e.RowIndex];
if (
e.ColumnIndex > ColumnNameIndex
&&
(Boolean)oDataGridViewRow.Cells[e.ColumnIndex].Value
)
{
// A checkbox was checked. Uncheck the row's other checkboxes.
foreach (Int32 iColumnIndex in new Int32 [] {
IsEdgeColumnIndex,
IsVertex1PropertyColumnIndex,
IsVertex2PropertyColumnIndex
} )
{
if (iColumnIndex != e.ColumnIndex)
{
oDataGridViewRow.Cells[iColumnIndex].Value = false;
}
}
}
PopulateVertexComboBoxes();
EnableControls();
}