//局部变量声明
CurrencyManager vManager;
DataTable vDataTable;
DataRow vDataRow;
string vCertHeadType;
vCertHeadType = OpWindowInvoker.GetCertHeadType();
if (!String.IsNullOrEmpty(vCertHeadType))
{
vDataTable = gridControl1.DataSource as DataTable;
vManager = BindingContext[vDataTable] as CurrencyManager;
vDataRow = vDataTable.Rows[vManager.Position];
vDataRow["MATCERTNUM"] = vCertHeadType;
}
本文介绍了一种更新数据表格中特定字段的方法。通过获取证书头部类型并验证其有效性后,利用 CurrencyManager 和 DataTable 对象来定位并修改当前选中行的数据。
6





