Hello,
I'm wondering what property might make the cursor NOT change to a hand when hovering over a URL in an UltraGrid... the grid is setup as follows: Me.ugPhones.DataSource = New List(Of PhoneRow) ugPhones.Rows.Band.Columns("PhoneNumber").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL formattedLinkEditor = DirectCast(Me.ugPhones.Rows.Band.Columns("PhoneNumber").Editor, FormattedLinkEditor) AddHandler formattedLinkEditor.LinkClicked, AddressOf formattedLinkEditor_LinkClickedThis makes it so the text in the column is correctly formatted as a URL and the click event of the URL is handled... and in a small test app the cursor correctly changes to a hand when hovering over the URL, but in another app, it does not. I've so far been unable to find any code differences that might change the grid so that the cursor wouldn't change to the hand.
Any ideas for me to look for?
Thanks!
Hello.
I have created a case for you and have logged this issue with our developers.
I was having the same problem today with a column bound to an integer field (a table's primary key).
Apparently, the cursor will not change to the hand unless the column is a string. I tried setting a date column to the URL style and although it appeared with the underline, the cursor would also not change when I moused over the cell values.
To "fix" my problem, I changed my datatable and SQL query to make the integer column a string and it now works as I expect it. Note - I am using conditional formatting of the background color on that column, but it still didn't work when I removed it, and works when I added it back after changing the column to a string.
Shouldn't the URL hand icon work for any datatype?
Alexi
Hi,
I can only think of two things.
1) The column is disabled. There are a number of ways you could disable it. This KB article has a list: HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
2) You are assigning an Appearance to the cell with a Cursor setting. This might be done in code, or perhaps through Application Styling.
If it helps, here is the ugPhones code from the designer:''ugPhones'Appearance1.BackColor = System.Drawing.SystemColors.WindowAppearance1.BorderColor = System.Drawing.SystemColors.InactiveCaptionMe.ugPhones.DisplayLayout.Appearance = Appearance1Me.ugPhones.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.SolidMe.ugPhones.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.[False]Appearance2.BackColor = System.Drawing.SystemColors.ActiveBorderAppearance2.BackColor2 = System.Drawing.SystemColors.ControlDarkAppearance2.BackGradientStyle = Infragistics.Win.GradientStyle.VerticalAppearance2.BorderColor = System.Drawing.SystemColors.WindowMe.ugPhones.DisplayLayout.GroupByBox.Appearance = Appearance2Appearance3.ForeColor = System.Drawing.SystemColors.GrayTextMe.ugPhones.DisplayLayout.GroupByBox.BandLabelAppearance = Appearance3Me.ugPhones.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.SolidAppearance4.BackColor = System.Drawing.SystemColors.ControlLightLightAppearance4.BackColor2 = System.Drawing.SystemColors.ControlAppearance4.BackGradientStyle = Infragistics.Win.GradientStyle.HorizontalAppearance4.ForeColor = System.Drawing.SystemColors.GrayTextMe.ugPhones.DisplayLayout.GroupByBox.PromptAppearance = Appearance4Me.ugPhones.DisplayLayout.MaxColScrollRegions = 1Me.ugPhones.DisplayLayout.MaxRowScrollRegions = 1Appearance5.BackColor = System.Drawing.SystemColors.WindowAppearance5.ForeColor = System.Drawing.SystemColors.ControlTextMe.ugPhones.DisplayLayout.Override.ActiveCellAppearance = Appearance5Appearance6.BackColor = System.Drawing.SystemColors.HighlightAppearance6.ForeColor = System.Drawing.SystemColors.HighlightTextMe.ugPhones.DisplayLayout.Override.ActiveRowAppearance = Appearance6Me.ugPhones.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.DottedMe.ugPhones.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.DottedAppearance7.BackColor = System.Drawing.SystemColors.WindowMe.ugPhones.DisplayLayout.Override.CardAreaAppearance = Appearance7Appearance8.BorderColor = System.Drawing.Color.SilverAppearance8.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacterMe.ugPhones.DisplayLayout.Override.CellAppearance = Appearance8Me.ugPhones.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectTextMe.ugPhones.DisplayLayout.Override.CellPadding = 0Appearance9.BackColor = System.Drawing.SystemColors.ControlAppearance9.BackColor2 = System.Drawing.SystemColors.ControlDarkAppearance9.BackGradientAlignment = Infragistics.Win.GradientAlignment.ElementAppearance9.BackGradientStyle = Infragistics.Win.GradientStyle.HorizontalAppearance9.BorderColor = System.Drawing.SystemColors.WindowMe.ugPhones.DisplayLayout.Override.GroupByRowAppearance = Appearance9Appearance10.TextHAlignAsString = "Left"Me.ugPhones.DisplayLayout.Override.HeaderAppearance = Appearance10Me.ugPhones.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMultiMe.ugPhones.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommandAppearance11.BackColor = System.Drawing.SystemColors.WindowAppearance11.BorderColor = System.Drawing.Color.SilverMe.ugPhones.DisplayLayout.Override.RowAppearance = Appearance11Me.ugPhones.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.[False]Appearance12.BackColor = System.Drawing.SystemColors.ControlLightMe.ugPhones.DisplayLayout.Override.TemplateAddRowAppearance = Appearance12Me.ugPhones.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFillMe.ugPhones.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.ImmediateMe.ugPhones.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupByMe.ugPhones.Dock = System.Windows.Forms.DockStyle.FillMe.ugPhones.Location = New System.Drawing.Point(0, 25)Me.ugPhones.Name = "ugPhones"Me.ugPhones.Size = New System.Drawing.Size(739, 227)Me.ugPhones.TabIndex = 4Me.ugPhones.TabStop = FalseMe.ugPhones.Text = "UltraGrid1"