How to Save Source load value to DatagrideView?

56
0
02-06-2020 12:37 AM
Highlighted
New Contributor

How to Save Source load value to DatagrideView?

try
{
IFeatureLayer featureLayar = (IFeatureLayer) this.m_layer;
// IDataset dataSet;
var featureClass = featureLayar.FeatureClass;
IDataset dataSet = (IDataset) featureClass;
foreach (DataGridViewRow row in this.dgvDataSource.Rows)
{
var propName = row.Cells ["ColName"]. Value.ToString ();
if (! Row.Cells ["Value"]. ReadOnly)
{
var modPropVal = row.Cells ["Value"]. Value.ToString ();
var orgPropVal = this. m_propertySet.GetProperty (propName);
if (modPropVal! = orgPropVal)
{
this.m_propertySet.SetProperty (propName, modPropVal);
}
}
}
}
catch (Exception ex)
{
MessageBox.Show (ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Reply
0 Kudos
0 Replies