How can I assign a custom UserControl to a DataGrid column header?

好久不见. 提交于 2019-12-06 12:22:19
Matthew Steven Monkan

This post by Manas Patnaik seems to have the answer:

http://manaspatnaik.com/blog/index.php/technology/silverlight-4/accessing-controls-in-datagrid-columnheader-silverlight/877

There is XAML displaying how to set the header template so it retains the default style, and also an explanation of how to access the controls from the DataGrid header through code-behind.

This answer explains how to bind to the controls set in the Style:

Dynamically setting the Header text of a Silverlight DataGrid Column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!