c# - Highlight DataGrid column header when mouse overing -
if set canusersort false in datagridtextcolumn (or in datagridtemplatecolumn) because want sorting manually, when place mouse on column header, doesn't highlight anymore.
here both examples:
how can forcefulness behaviour?
you can in 2 ways:
set canusersort true canel sorting on sorting event of datagrid by:
e.handled = true;
retemplate datagridcolumnheader - add together mouseover trigger highlight header.
c# wpf datagrid wpfdatagrid
No comments:
Post a Comment