public void AddGeometricProperty(GeometricPropertyDefinition geomDef)
{
if (geomDef.ReadOnly)
return;
DataGridViewRow row = new DataGridViewRow();
DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
nameCell.Value = geomDef.Name;
nameCell.Tag = geomDef;
DataGridViewCell valueCell = new DataGridViewTextBoxCell();
valueCell.ToolTipText = "Enter the FGF or WKB geometry text";
DataGridViewCheckBoxCell ecell = new DataGridViewCheckBoxCell(false);
ecell.Value = true;
DataGridViewCheckBoxCell ncell = new DataGridViewCheckBoxCell(false);
ncell.Value = false;
row.Cells.Add(ecell);
row.Cells.Add(ncell);
row.Cells.Add(nameCell);
row.Cells.Add(valueCell);
nameCell.ReadOnly = true;
grdProperties.Rows.Add(row);
}