Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.
Protected Sub lvNested_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.ListViewItemEventArgs) Dim child As Integer = 0 For Each item As ListViewItem In ListView1.Items Dim lvNested As ListView = DirectCast(item.FindControl("lvNested"), ListView) child += lvNested.Items.Count For Each row As ListViewItem In lvNested.Items Dim hfMaxNo As HiddenField = DirectCast(row.FindControl("hfMaxNo"), HiddenField) Dim hfRegistered As HiddenField = DirectCast(row.FindControl("hfRegistered"), HiddenField) Dim cbSelect As CheckBox = DirectCast(row.FindControl("cbSelect"), CheckBox) Dim ClosedLabel As Label = DirectCast(row.FindControl("ClosedLabel"), Label) Dim MaxNo As Integer = 1 Dim Registered As Integer = hfRegistered.Value If Registered > MaxNo Then ClosedLabel.Text = "Trip Closed! " cbSelect.Visible = False Else ClosedLabel.Text = "" cbSelect.Visible = True cbSelect.Enabled = True End If Next Next lblTestTrips.Text = "Parent: " & ListView1.Items.Count & " Children: " & child
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.