根据弹出框来获取值并放在当前控件的指定cell里面

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

             }

你可能感兴趣的:(.NET开发)