开发者

Is it possible to center align the data in a grid control?

Is it possible to center align the data in a grid control? If so pleas开发者_如何学Pythone help.


You can provide ItemStyle-HorizontalAlign="Center" as property to your column in the grid view/ data grid.


Define a Celltemplate with HorizontalAlignment="Center"

  • Link: http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumn.celltemplate.aspx


In your grid define

HorizontalAlignmnet = "Center"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜