Article Details
Id: | 13532 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 2.03.04 |
Opened: | 23/12/2015 |
Closed: | 07/01/2016 |
Released: | 03/02/2016 |
Job: | J016734 |
Page Sets; Grids; Grid rows can now be hidden
Page Set Grid rows can now be hidden.
This is performed in the InitialiseRow event by setting the row's Visible property as follows:
Public Sub gridTest_InitialiseRow(sender As Object,
e As finPageObjectInitialiseRowEventArgs) Handles gridTest.InitialiseRow
If e.ListIndex >= 0 AndAlso e.ListIndex < mAccount.Clients.Count Then
With mAccount.Clients(e.ListIndex)
' Update Fields
e.Row.Cells("ClientId").Value = .ClientId
e.Row.Cells("Name").Value = .ClientName
e.Row.Cells("AccountRoleId").Value = .AccountRoleId
' Hide Row
If Not .IsOwner Then e.Row.Visible = False
End With
End If
End Sub