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
305
Problem with SelectedRowChanged event on my WebCombo
posted
Hi, A bit weird this.... I have a webcombo that displays fine. I've 'code-behind' placed a number of rows of data into it and they display well: [VB] oDate = Now() For i = 0 To 12 oRow = New Infragistics.WebUI.UltraWebGrid.UltraGridRow oCell = New Infragistics.WebUI.UltraWebGrid.UltraGridCell oCell.Text = Format(oDate, "MMMM, yyyy") oRow.Key = oCell.Text 'So that the code below can use the 'FromKey' oRow.Cells.Add(oCell) Me.WC_List.Rows.Add(oRow) oDate = DateAdd(DateInterval.Month, -1, oDate) Next Odd thing is that when I create a SelectedRowChanged event in my VB code: Private Sub WC_List_SelectedRowChanged(ByVal sender As Object, ByVal e As Infragistics.WebUI.WebCombo.SelectedRowChangedEventArgs) Handles WC_List.SelectedRowChanged End Sub the web page becomes totally unresponsive [ie the code has gone off into the long grass somewhere...... ]. Tracing the code [with a line or two of trivial code in the subroutine works fine until the 'end sub' point - then it disappears.... If I remove these two lines, all is OK. Any Ideas? D.
  • 21382
    posted

     Are you creating the rows on each postback?  If you are not then what could be happening is that the grid (internal to the combo) could be failing.   You could try using the overloaded constructor on the row object that accepts a boolean (to track viewstate).