Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
selectedindex isn't changing
posted

i want to change the selectedindex of combo but its not working. Please someone help me to indentify where is my mistake 

protected void WebCombo1_SelectedRowChanged(object sender, Infragistics.WebUI.WebCombo.SelectedRowChangedEventArgs e)

{

if (true)

{

this.WebCombo1.SelectedIndex = -1;

}

}

Parents
No Data
Reply
  • 2254
    posted

    Hello,

    = -1 ?? What means -1 for you ?

    Anyway,  I don't think it's ok to change the selected index of the webcombo during the WebCombo1_SelectedRowChanged event handler.

    This event is raised after the selected index has been changed by the user, and for this reason  it doesn't seem to be a suitable place to think of changing the selected index  the way you do. 

Children
No Data