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
Post a Comment