Saturday, January 28, 2012

Get and Set values implicitly in web control in EP

DataSetViewRow  row;

row = AxDatasource.GetDataSet().DataSetViews["DataSetViewName"].GetCurrentRecord();

// Get old value
row.GetFieldValue("FieldName");

// Set new value
row.BeginEdit();
row.SetFieldValue("FieldName", NewValue);
row.EndEdit();