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"
精彩评论