日期:2014-05-17 浏览次数:20957 次
DataTable dt = new DataTable();
dt.Columns.Add("OriginalCode");
dt.Columns.Add("OriginalName");
DataRow dr1 = dt.NewRow();
dr1["OriginalCode"] = "True";//赋值为1或0也不好用
dr1["OriginalName"] = "原件";
DataRow dr2 = dt.NewRow();
dr2["OriginalCode"] = "False";
dr2["OriginalName"] = "复印件";
dt.Rows.Add(dr1);
dt.Rows.Add(dr2);
dgvfcmbIsOriginal.DataSource = dt;
dgvfcmbIsOriginal.DisplayMember = "OriginalName";
dgvfcmbIsOriginal.ValueMember = "OriginalCode";
DataTable dt = new DataTable();
dt = CommonMethodHelper.ToDataTable(Cost_FeeInfoManager.GetCost_FeeInfoByBusinessNum(cfi));
//为付款信息赋值
dgvfcmbCurrency_Name.DataSource = dt;
dgvfcmbCurrency_Name.DisplayMember = "Currency_Name";
dgvfcmbCurrency_Name.ValueMember = "Currency_Id";
//dgvfcmbCurrency_Name的datapropertyname的值是Currency_Name
ghdgvFukuan.DataSource = dt;