NEW2.01.00 · Released 27 June 2014
NEWfinPOWER Connect
Released in
2.01.00
27 June 2014
- Opened12 May
- Closed12 May
- 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 gridTestWith .Columns.AddIcon("Icon", "Icon").AddString("Description", "Description", 100, True)End WithEnd 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.InitialiseRowIf e.ListIndex >= 0 AndAlso e.ListIndex < MyList.Count ThenWith MyList(e.ListIndex)e.Row.Cells("Description").Value = .DescriptionIf Len(.Description) = 0 Thene.Row.Cells("Icon").Value = "Cross"Elsee.Row.Cells("Icon").Value = "Flag[Green]"End IfEnd WithEnd IfEnd 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.