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