//局部变量声明
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;
}