Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.
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.