Disable DragSelect

Feb 16, 2011 at 1:13 PM

Hi there!


We are using the DataGrid in our current Project (actually the Version from the PresentationFramework 4 .... don't know if this actually makes any difference in the API). It is working pretty well except one little thing that is bugging me for quite some time now. We do want to use the MultiSelect functionality but at the same time we would very much like to disable the DragSelect behavior (select one row and drag the mouse to select additional rows). The DragSelect is interfering with out Drag&Drop implementation. I couldn't find any way to disable the DragSelect. Right now we are using a hack to disable it by catching the mouse events before they reach the data grid and some messing around with the selected item. This is no nice solutions and creates a whole lot of other problems as well. Is there any way to disable the DragSelect Feature that I can not see right now? One option would be to use the CodePlex version, compile it for .Net 4.0 and just throw out the DragSelect code parts or introduce a new Property to disable it. But when there is another way I really would like to hear about it so we can stick with the Framework assembly.