Add a button to the last row of the DataGrid
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 :-)
精彩评论