Article Details
| Id: | 12029 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 2.01.01 |
| Opened: | 01/07/2014 |
| Closed: | 01/07/2014 |
| Released: | 31/07/2014 |
| Job: | J013556 |
Page Sets; Grid cells can now have a Tooltip and be forced to be Read-Only
Grid cells can now have a Tooltip and be forced to be Read-Only. This is achieved in the Grid's InitialiseRow event as follows:
Public Sub gridTest_InitialiseRow(ByVal sender As Object, ByVal e As finPageObjectInitialiseRowEventArgs) Handles gridTest.InitialiseRowIf e.ListIndex >= 0 AndAlso e.ListIndex < mCollection.Count Then' Tooltipe.Row.Cells("Icon").TooltipText = "My Tooltip: " & CStr(e.ListIndex)' Read-OnlySelect Case e.ListIndex Mod 3Case 0e.Row.Cells("Selected").ReadOnly = iseDefaultableBoolean.TrueCase 1e.Row.Cells("Selected").ReadOnly = iseDefaultableBoolean.FalseCase 2e.Row.Cells("Selected").ReadOnly = iseDefaultableBoolean.DefaultEnd Select' Update FieldsWith mCollection(e.ListIndex)e.Row.Cells("Selected").Value = .Selectede.Row.Cells("Icon").Value = "Edit"End WithEnd IfEnd Sub
The above example simply sets a Cell's tooltip to be a unique value and changes the Read-Only state of a Cell based on e.ListIndex.