开发者

font color to the silverlightdatgrid cell of particular column while binding

开发者 https://www.devze.com 2023-01-20 18:24 出处:网络
i just want to apply font color to the text of a sil开发者_Go百科verlight datgrid cell for a particular columnwhile binding the itemsource

i just want to apply font color to the text of a sil开发者_Go百科verlight datgrid cell for a particular column while binding the itemsource

how can that be accomplished?


Make that column a DataGridTemplateColumn and in it's CellTemplate have the ForegroundColor set by a binding with a ValueConverter that determines the correct color. In your value converter you place the logic to choose the correct color.

0

精彩评论

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