void MtdLoadTbl3() { MtdCreateController(); List <VNTCode.ClsTbl3> lstTbl3 = oCtrLer.Tbl3_Gets_Pair(""); comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "Id"; comboBox1.DataSource = lstTbl3; }
void MtdLoadTbl3() { MtdCreateController(); List <VNTCode.ClsTbl3> lstTbl3 = oCtrLer.Tbl3_Gets_Pair(lblUserName.Text); VNTSellGold.App_Code.ClsTbl3 oClsTbl3 = new VNTSellGold.App_Code.ClsTbl3(); oClsTbl3.Id = 0; oClsTbl3.Name = "Chưa Giao"; lstTbl3.Add(oClsTbl3); comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "Id"; comboBox1.DataSource = lstTbl3; }
void MtdLoadTbl3() { MtdCreateController(); List <VNTCode.ClsTbl3> lstTbl3 = oCtrLer.Tbl3_Gets_Pair(lblUserName.Text); //(from tbl3s in oCtrLer.MemLinq.Tbl3s // where tbl3s.SCol1 != lblUserName.Text // select new // { // Name = tbl3s.SCol2 + " " + tbl3s.SCol3, // Id = tbl3s.Id // }); comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "Id"; comboBox1.DataSource = lstTbl3; }