Hi, I have two comob Box , one is countries , another is states , when the user change the country , the state will be changed depending on which country is selected .
I have done it like:
cmbxStates.Items.Clear();
SelectedCountry = cmbxCountries.SelectedItem.ToString();
StatesDataSource.Disconnect();
StatesDataSource.ResetData();
StatesDataSource.Connect();
foreach (DataRow row in StatesDataSource.DataTable.Rows)
{
cmbxStates.Items.Add(row["State"]);
}
But I have lots of report (mrt file) have similar requirements, maybe it is Kind and sub-kind or State-code zip , is there any way to do this in a function or high level ,such as class inherited ,Control Extension ect.
Thanks.
combo item changed with the selected value
-
- Posts: 22
- Joined: Wed Feb 06, 2013 6:12 am
Re: combo item changed with the selected value
Hello,
In our to-do list there is a task to realize a similar task with the "Request from user" variables - when one combobox with datacolumn changed - in second combobox applied the filter by first. We will try to realize it in the nearest future.
Thank you.
In our to-do list there is a task to realize a similar task with the "Request from user" variables - when one combobox with datacolumn changed - in second combobox applied the filter by first. We will try to realize it in the nearest future.
Thank you.