How to fire DropDownListBox SelectIndexChange event programmically?
<p>Edit... Just to make sure everyone will read.</p>

<p>calling the follows directly is not possible in my code:</p>

<pre><code>void control_Changed(object sender, EventArgs e) 
</code></pre>

<p>This function is loop through a Collection of DropDownListBox, and each DropDownListBox has different Select_Change function.  Also they are not in the same page, they collection of DropDownListBox is come from different user control of the page.</p>

<p>=========</p>

<p>Hello,</p>

<p>I saw a lot of solution are simply calling the function that the event should trigger..
But this will not be working on my case.</p>

<p>I have a code that will mapping the data to a collection of dropdownlistbox and select the proper dropdownlistbox item for each dropdownlistbox.</p>

<p>So, is kind of like this:</p>

<pre><code>foreach (Control aControl in aControlCollection){
    if (aControl.GetType() == typeof(RadComboBox))
                {
                    bool FoundItem = false;
                    RadComboBox aComboBox = (aControl as RadComboBox);
                    foreach (RadComboBoxItem aComboItem in aComboBox.Items)
                    {
                        Debug.WriteLine("aComboItem " + aComboItem.Text + " Value" + aComboItem.Value);
                        if (aComboItem.Value.ToLower() == _dataObject.ToString().ToLower())
                        {
                            //aComboBox.SelectedIndex = aComboBox.Items.IndexOf(aComboItem);
                            aComboItem.Selected = true;
                            FoundItem = true;
                            ~~~FIRE EVENT HERE~~~~~
                            //break;
                        }
                        else {
                            aComboItem.Selected = false;                        
                        }
                    }
                    if (!FoundItem)
                    {
                        RadComboBoxItem aComboItem = new RadComboBoxItem();
                        aComboItem.Value = _dataObject.ToString();
                        aComboItem.Text = _dataObject.ToString();
                        aComboBox.Items.Add(aComboItem);
                        aComboBox.SelectedIndex = aComboBox.Items.IndexOf(aComboItem);
                    }
                }

            }
}
</code></pre>

<p>Normally in the page, when user select the a first dropdownbox, the 2nd dropdownbox that follows will generate the proper dropdownlist item according to the first dropdownbox (from the first dropdownbox selectindexchange event).</p>

<p>So I wonder if there is anyway I can fire the DropDownListBox programmically?</p>

<p>Thanks in Advance,
King</p>

<p>==============</p>

<p>Just to make it even more clear, the above function is call by iterates all DropDownListBox on the page, so they can be link into different function.</p>
