Article Details
Id: | 11877 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 2.01.00 |
Opened: | 12/05/2014 |
Closed: | 12/05/2014 |
Released: | 27/06/2014 |
Job: | J013230 |
Page Sets; Grids can now have a column type of 'Icon'
Page Set Grids can now display 'Icon' type columns.
Icon columns are added to a grid as follows:
With gridTest
With .Columns
.AddIcon("Icon", "Icon")
.AddString("Description", "Description", 100, True)
End With
End With
To set a cell's icon, simply set it to a valid icon Resource Id or one of the special icon values such as 'Flag[#FF0000], e.g.:
Public Sub gridTest_InitialiseRow(ByVal sender As Object, ByVal e As finPageObjectInitialiseRowEventArgs) Handles gridTest.InitialiseRow
If e.ListIndex >= 0 AndAlso e.ListIndex < MyList.Count Then
With MyList(e.ListIndex)
e.Row.Cells("Description").Value = .Description
If Len(.Description) = 0 Then
e.Row.Cells("Icon").Value = "Cross"
Else
e.Row.Cells("Icon").Value = "Flag[Green]"
End If
End With
End If
End Sub
A list of valid icon resources is available from the Icon dropdown list on the General page of the Page Sets form.
NOTE: You cannot set the width of an icon column, nor can it be anything but read-only.