Anyone,
I need to be able to change the color of the text in the column. With hot-tracking enabled on the grid the font color of the column with a column style of URL is the same.
I have the column set like this: e.Layout.Bands[0].Columns[ColumnName].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL
I would like the text of the URL to be white like the other columns when the row is selected.
Thanks for any help.
Kris
Hi Kris,
I'm pretty sure that this is a known bug. The cells should automatically be picking up the selected forecolor the row or cell is selected. Otherwise, there's a risk that the text could be invisible, since the BackColor is changing but the forecolor does not.
Get the latest Hot Fix and see if that helps. If not, you should Submit an incident to Infragistics Developer Support
Hi Mike,
Thanks for the information. I assumed this might still be the case since I did find a reference you made last year that this was a known bug.
I tried out NetAdvantage 2006 Volumn 3CLR 2 with the latest hotfix 6.3.20063.1091 and the problem still exists. I will be submitting an incident.
I am also going to try to come up with a work around for now. I'm going to try something when the row is selected or highlighted. I need the it to change when the row is highlighted since I have the hot tracking activated on the grid. Any pointers would be welcomed.
Thanks, Kris
I too come across the same problem.. I am unable to change the fore color of the Hyperlink (URL) when a row is selected from the grid.
I shall be thankful if you could provide me any help.
Thanks,
Purushotham.A
Hi,
I'd be happy to whip up a quick DrawFiltet for you. But it would be easier if I knew exactly what you were doing. Could you post a small sample project that demonstrates what you currently have and then I can modify it with the DrawFilter code.
Heloo,
I have a grid with four columns one among those column has this property( e.Layout.Bands[0].Columns[ColumnName].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL) remaining three columns of the grid has normal text.
Now, when we click on any cell of a grid it need to select the complete row of corresponding cell. On selection of row we need to change fore color of the text need to change.All columns of the text fore color is being changed but we are unable to change this Hyperlink text(Infragistics.Win.UltraWinGrid.ColumnStyle.URL).Once if we changed our row selection, grid row need to retain its own properties(Fore Color,back ground etc..)
I tried to change forecolor by the methods:
Grid>>Display Layout>>Changed fore Color.
Grid>>Override>>Active row Appearnce>>Changed fore Color.
Grid>>Override>>Selected row Appearnce>>Changed fore Color.
Grid>>Band>>Active row Appearnce,Selected row appearance>>Changed fore Color.
I am unable to change the fore color of text on row selection.
There's a sample DrawFilter here that should do what you want:
Looking to change text appearance in cell in ColumnStyle.URL Column - NetAdvantage for Windows Forms - WinGrid
Hello Infragistics Team,
Is this still an outstanding bug? I'm trying to set all of the font colors for a given row to Red and it's working for every column except the one that is defined as a URL. Is the DrawFiller the only current work around to this issue? I'm using the below code. Thank you for your assistance.
e.Row.Appearance.ForeColor = Color.Red;
Hi Mark,
I took a look and I can't find any records of this ever being written up as a bug in our system. I think I was probably wrong in my previous post about this being a bug. The URL style of the text has to override the selected colors on the row.
There are a number of ways you could get around this. One is the Drawfilter. Another would be to use the selection overlay, which draws a semi-transparent overlay over the selected row(s) instead of changing the colors directly. To use this, you set the SelectionOverlayColor on the grid.DisplayLayout to whatever color you want. The overlay provides a more Excel-like look and feel and since it's a semi-transparent overlay, it doesn't interference as much with the colors in the cells.