This is a migrated thread and some comments may be shown as answers.

Hide Select Node on SOME rows

1 Answer 44 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Richard M
Top achievements
Rank 1
Richard M asked on 28 Sep 2011, 09:27 PM

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

1 Answer, 1 is accepted

Sort by
0
Richard M
Top achievements
Rank 1
answered on 04 Oct 2011, 01:59 PM
Is anyone watching this forum?
Tags
TreeListView
Asked by
Richard M
Top achievements
Rank 1
Answers by
Richard M
Top achievements
Rank 1
Share this question
or