Hide Select Node on SOME rows

2 posts, 0 answers
  1. Richard M
    Richard M avatar
    15 posts
    Member since:
    Feb 2010

    Posted 28 Sep 2011 Link to this post

    I want to hide the ability to select a row based on criteria

    Private Sub TreeRowLoaded(sender As Object, e As RowLoadedEventArgs)
        If TypeOf e.Row Is GridViewRow AndAlso Not (TypeOf e.Row Is GridViewNewRow) Then
            Dim asset As MaintenanceWorkbenchAssetDTO = TryCast(e.DataElement, MaintenanceWorkbenchAssetDTO)
            If asset IsNot Nothing Then
                Dim row As GridViewRow = TryCast(e.Row, GridViewRow)
                If row IsNot Nothing Then
                    row.IsExpandable = False
                    row.IsSelected = False
                Else
                    row.IsExpandable = True
                    ' Hide Selection Checkbox
                End If
            End If
        End If
    End Sub
  2. Richard M
    Richard M avatar
    15 posts
    Member since:
    Feb 2010

    Posted 04 Oct 2011 Link to this post

    Is anyone watching this forum?
  3. DevCraft banner
Back to Top