MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
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.