开发者

Is there another way to set the DataGrid column alignment?

开发者 https://www.devze.com 2023-02-21 09:13 出处:网络
Is there any direct way to set the DataGrid column content alignment other than the use of styles or templated co开发者_开发问答lumns?! there must be a direct way for that, its a natrual requirement!!

Is there any direct way to set the DataGrid column content alignment other than the use of styles or templated co开发者_开发问答lumns?! there must be a direct way for that, its a natrual requirement!!


As far as I know, no. The smallest amount of XAML would be to create left, centre and right styles & templates, and then each time you create a column, set the CellStyle.

0

精彩评论

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