How to get a DataGrid column name when the header is clicked, WPF MVVM -
my info grid using different style can't utilize below code.is there other way of getting column name in mvvm environment without changing existing style? please allow me know.
<datagrid.columnheaderstyle> <style targettype="datagridcolumnheader"> <eventsetter event="click" handler="columnheader_click" /> </style> </datagrid.columnheaderstyle>
the handler of click event i.e. columnheader_click have sender parameter can cast datagridcolumnheader , access content property
wpf mvvm
No comments:
Post a Comment