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
560
Hide some rows in a databound WinCombo
posted

Hello,

I am trying to hide some rows in a WinCombo based on the value in a specific cell. Those rows will become visible under certain conditions, so it would be great if I could hide them when binding the WinCombo to my datasource. Could anyone please tell me, what is the best way to do so?

Thanks,
Stefan

Parents
No Data
Reply
  • 560
    Verified Answer
    posted

    I found a solution that works fine for me. I set those rows to hidden in the InitializeRow-Event:

        Private Sub uddlAbteilung_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles uddlAbteilung.InitializeRow
          If e.Row.Cells("EinzelEingang").Value = False Then
             e.Row.Hidden = True
          End If
       End Sub

Children
No Data