combo item changed with the selected value

Stimulsoft Reports.NET discussion
Post Reply
fjaweihyafie
Posts: 22
Joined: Wed Feb 06, 2013 6:12 am

combo item changed with the selected value

Post by fjaweihyafie »

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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: combo item changed with the selected value

Post by Alex K. »

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.
Post Reply