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 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.