Hello
I'm using Ultra WinGrid and make smth. like GMail labels in column. Like this:
i.e. I have to draw small image (16x16) and a few colored text labels. Can I do it with DrawFilter?
column type is "MySpecialColoredTextWithMaybeImageType" :)
I see.
i try in UltraFormattedLinkLabel and there is only <font color=".... format. I think <span style appears some later.
ok. Thanks for assistance.
Hi,
I don't have v6.1 on my machine any more. Maybe the "color" tag support was not added until a later version. Try the same text as the Value of an UltraFormattedTextEditor or UltraFormattedLinkLabel control and see if it works there.
I'm attaching a sample using the oldest version I have on my machine, which is v8.1 and using the code you have listed here and this sample works just fine for me.
Can you make some simple example, please?
I've done:
public Form1() { InitializeComponent(); ultraGrid.DataSource = ultraDataSource; ultraGrid.DisplayLayout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.FormattedText; ultraDataSource.Rows.Add(new object[] { "<span style=\"color:Green; background-color:#339966;\"> testLabel </span>" }); ultraDataSource.Rows.Add(new object[] { "<span style=\"color:Red; background-color:#339966;\"> testLabe2 </span>" }); }
UltraGrid have 1 column (string)
And result is:
I can't see why this would not work. The version foes not matter, so long as the Style property of the column has an option for FormattedText and the DataType of the column is string, this should work.