NEW2.01.00 · Released 27 June 2014
NEWfinPOWER Connect
Released in
2.01.00
27 June 2014
  1. Opened12 May
  2. Closed12 May
  3. Released27 Jun
Article 11877 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.