WPF DataGrid: How to clear selection programmatically? -


it simple task in grid, can't make happen in wpf datagrid. there unselectall or unselectallcells methods, don't work. also, setting selecteditem = null or selectedindex = -1 don't work either.

there post here disable selection, that's not want. want clear current selection (if any) , set new selection programmatically.

datagrid.unselectall() 

for rows mode


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -