Posted 12 October 2017, 7:38 am EST
Hi everyone
Do I able to define a template for the column header? because my header should consist cobobox and textblock. The same way how it does in MS Datagrid.
Forums Home / ComponentOne / WPF Edition
Posted by: lukas.92 on 12 October 2017, 7:38 am EST
Posted 12 October 2017, 7:38 am EST
Hi everyone
Do I able to define a template for the column header? because my header should consist cobobox and textblock. The same way how it does in MS Datagrid.
Posted 12 October 2017, 5:15 pm EST
Hi,
You can modify the template for DataGridColumnHeaderPresenter based on your requirement.
See the attached sample application.
For more info about changing the DataGridColumnHeaderPresenter, go through the “DataGridColumnHeaderPresenter.xaml” file installed at (C:\Program Files (x86)\ComponentOne\WPF Edition\C1WPFDataGrid.4\XAML).
WPF_C1DataGrid_CustomHeaderTemplate.zip
Thanks,
Singh Sonu