Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Independant text color in table cells
posted

I'm using the Infragistics document engine and I want to independently set the colour of the font in each cell. I.e

Dim cell8Row2Table2 As ITableCell = Row2Table2.AddCell
Dim cell8Row2Table2Text As IText = container.AddText
cell8Row2Table2Text.Style.Brush = Infragistics.Documents.Graphics.Brushes.DarkGreen cell8Row2Table2Text.AddContent("Some stuff")

Dim cell9Row2Table2 As ITableCell = Row2Table2.AddCell
Dim cell9Row2Table2Text As IText = container.AddText
cell9Row2Table2Text.Style.Brush = Infragistics.Documents.Graphics.Brushes.DarkRed
cell9Row2Table2Text.AddContent("Some different coloured stuff")

As you can see I create a text item for each cell and set the colour. Problem is that when I do this all cells seem to end up with the same colour. As though I've set the colour for the whole band.

How would I go about doing this?