DataGridColumnHeader 有事件 MouseLeftButtonDown。我该如何使用这个活动?
如何将 DataGridColumnHeader 与 DataGridColumn 一起加入?
for Example:
...
DataGridTextColumn TC;
TC = new DataGridTextColumn();
TC.Header = "ID";
TC.Binding = new Binding();
TC.Binding.Converter = new MyCustomConverter();
TC.Binding.ConverterParameter = 0;
// I need something like this:
TC.MouseLeftButtonDown += new event ....
// i need - when click on column header, my custom function will executed.
dataGrid.Columns.Add( TC );