FdoToolbox.Base.Controls.FdoBulkUpdateCtl.AddGeometricProperty C# (CSharp) Method

AddGeometricProperty() public method

Adds the geometric property.
public AddGeometricProperty ( GeometricPropertyDefinition geomDef ) : void
geomDef GeometricPropertyDefinition The geom def.
return void
        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);
        }