nageswaragunupudi wrote:The above sample shows usage of oCol:bPaintText.
This offers total flexibility to the programmer and he can paint any cell in his own way.
There is another feature where two or more columns can be painted in a single cell.
By specifying something like
oBrw:aCols[ 1 ]:SetColsAsRows( 1, 2, 3 ), contents of columns 1,2,3 are painted as 3 rows in column 1 and columns 2 and 3 are not displayed. We can specify different fonts, colors, alignment, etc to these columns as usual, except that they are painted under one another as subrows of the cell instead of showing in adjacent columns.
Now let us apply formatting to the columns. Every 3rd columns has the same formatting.
For this just comment the line of code in the above sample
- Code: Select all Expand view
// :aCols[ i ]:SetColsAsRows( i, i + 1, i + 2 )
Mr Rao
You can do what you explain if a column is text and the next column is an image?
Mr Rao
Es posible hacer lo mismo que usted explica si una columna es texto y la siguiente columna es una imagen?
- Code: Select all Expand view
:aCols[ 1 ]:SetColsAsRows( 1, 2 )