LLBLGen 4.0
LLBLGen Runtime Framework
.NEt Framework 4.0
C# Windows Application
MYSQL 5.x
Hello,
I am trying to load data in the combo box by data binding.
Design:
CmbCountryID - I Created Combobox
Added datasource bndsrccountry to Cmbcountryid
Added binding source by name bndsrccountry. Added countryCollection as data source.
In databinding selected item - added bndsrccountry - Description
In databinding value Member - added bndsrccountry - Countryid
Now this is my code
Filter.Clear();
Filter.Add(CountryFields.Flag == VariableClass.Flagvalid);
ISortExpression sort =
new SortExpression(CountryFields.Description | SortOperator.Ascending);
_country.GetMulti(Filter, 0, sort, null, null, null, 0, 0);
cmbcountryid.DataSource = bndsrccountry;
But when I run nothing comes up in combo box !
Wondering why ?
Also tried adding these 2 lines
cmbcountryid.DisplayMember = "Description";
cmbcountryid.ValueMember = "CountryID";
cmbcountryid.Refresh();
Query generated executes in SQL with data