开发者

Add a button to the last row of the DataGrid

开发者 https://www.devze.com 2023-04-03 11:58 出处:网络
Using a DataGrid from WPFToolkit, I bind it to a datatable. On c开发者_高级运维ertain scenario I want to add a row which only contains a single button horizontally centered. The columns I defined In t

Using a DataGrid from WPFToolkit, I bind it to a datatable. On c开发者_高级运维ertain scenario I want to add a row which only contains a single button horizontally centered. The columns I defined In the DataGrid are two textcolumns and one columntemplate. Is this possible?


Grids are designed to work like tables or nets with cols and rows mostly uniform. if you need a button only at the bottom i would try to customize grid footer more than a gridrow. you could probably do everything with some templates and bit of custom code but i would really go for the footer :-)

0

精彩评论

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