using (DataTable ddt = new DataTable())
{
DataColumn ddc = new DataColumn();
ddc.ColumnName = "Code";
ddc.Caption = "Code";
ddt.Columns.Add(ddc);
DataColumn dnameDc = new DataColumn();
dnameDc.Caption = "Name";
dnameDc.ColumnName = "Name";
ddt.Columns.Add(dnameDc);
DataRow ddr = ddt.NewRow();
ddr["Code"] = "1";
ddr["Name"] = "货款";
ddt.Rows.Add(ddr);
DataRow ddr1 = ddt.NewRow();
ddr1["Code"] = "2";
ddr1["Name"] = "药品款";
ddt.Rows.Add(ddr1);
DataRow ddr2 = ddt.NewRow();
ddr2["Code"] = "3";
ddr2["Name"] = "同城提出借方";
ddt.Rows.Add(ddr2);
DataRow ddr3 = ddt.NewRow();
ddr3["Code"] = "4";
ddr3["Name"] = "转账";
ddt.Rows.Add(ddr3);
DataRow ddr4 = ddt.NewRow();
ddr4["Code"] = "5";
ddr4["Name"] = "手续费";
ddt.Rows.Add(ddr4);
repositoryItemLookUpEdit1.DataSource = ddt;
repositoryItemLookUpEdit1.ValueMember = "Name";
repositoryItemLookUpEdit1.DisplayMember = "Name";
}