HoangLuc19
Member
- Joined
- Nov 18, 2019
- Messages
- 12
- Programming Experience
- 1-3
Hello everyone, I have a function to load data into the combobox like this, but it fails to get
the data, hope you guys see how wrong the error in the above 2 lines is without getting the data:
the data, hope you guys see how wrong the error in the above 2 lines is without getting the data:
C#:
private void getlistVendor()
{
VendorIndexRS vendorIndexRS = apiDocument.GetVendor(new QueryRQ()).Result;
List<VendorDetail> lstData= vendorIndexRS.Data.ToList();
cmbVendor.DataSource =lstData;//cmbVendor.Datasoure=null
cmbVendor.DisplayMember = "Name";
cmbVendor.ValueMember = "Id";
}
Last edited by a moderator: