Posted 10 March 2020, 2:18 pm EST
Hello,
I have a combo that I set the datasource = datatable and then set the .Splits(0).DisplayColumns(“colname”) the way I want.
With c1cboVendor
.ClearFields()
.DataSource = GetVendorListDT()
.DataMember = "VendorID"
.DisplayMember = "VendorName"
.Splits(0).DisplayColumns("VendorName").Width = 180
.Splits(0).DisplayColumns("Address1").Width = 120
End With
I do this by calling a method in my form_load event.
After this I want to reload with a refreshed datatable (new rows added).
I reuse the similar process as before and call the same method. Except this time I get an error because there is no Splits(0).
I don’t understand why.
version 4.0.20151.38
Regards
Brian