开发者

How to set a style for a cell in datagrid

I am using a datagrid in flex and need t开发者_运维问答o render each cell with a different style. What could be the best way to set a style to a perticular cell in datagrid/advanced datagrid (flex)?

I think one possible option can be extend the datagrid and override the drawRowBackgroungd function. Apart from this can i use some custom item renderer or some property similar to label function of a series, there it used to return label here we need a style.

Thanks in advance.


I think Item renderers are your best option, you can use a canvas as your renderer and do whatever to it based on the data of that cell.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜