Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to scroll TableView on selecting row with moving the mouse outside view bounds

$
0
0

Obsolete. Starting with 12.1, to achieve this functionality, set the GridControl.SelectionMode property to Cell. 




This example illustrates how to add the DXGrid behavior which provides the capability to select rows and cells by simply moving the mouse over them with the mouse button pressed and auto-scrolling the view in a necessary direction.

This functionality was implemented via attached behavior for DXGrid which encapsulates all the selection functionality.

The scrolling functionality was implemented in a separate class named ScrollController.

Question Comments

Added By: MichaelDaly at: 10/15/2012 5:51:50 AM    

This example needs more testing.

Line 207: rightColumnWhenUnselect can be null, need to insert this before: if (rightColumnWhenUnselect == null) rightColumnWhenUnselect = View.VisibleColumns.Last();

Line 181: CurrentSelectionInfo.Column can be null

It's a good effort, but the scrolling does not feel as smooth as in other apps, e.g. Excel

Added By: MichaelDaly at: 10/15/2012 5:53:21 AM    

Note: previous comment was for code in GridSelectingBehaviour.cs

Added By: Andrey K (DevExpress Support) at: 5/7/2015 10:19:21 AM    Hello,

It seems that your message was lost in our Support Center. Thank you for your remarks. We will improve our example accordingly.

Thanks,
Andrey

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>