Highlight DataGrid Row and use Mouse Scroll Wheel on DataGrid
How to Highlight a DataGrid Row and Use Mouse Wheel to Scroll in a DataGrid
There are two features demonstrated in this program.
NB! Please follow these directions in order to see the correct results.
First is how to programmatically highlight a row in a DataGrid.
1. To have the appropriate DataGrid Row become highlighted, simply
input a last name (use Martin) in the first TextBox and click the
“Highlight Grid” Command Button. You will obtain the desired result.
2. Next Click the Clear Command button then select the
“Find and Highlight Selected Grid Item” Command Button,
and input a last name in the Input Dialog Box (type in Jones)
The next feature is using the Mouse Scroll Wheel to navigate the DataGrid itself..
3. When the program starts there is red right arrow in the upper left
corner of the DataGrid. In order to use the Mouse Scroll Button the
DataGrid must have the focus, to do this click on this Red Arrow.
This action will highlight the first row of the Grid and now you can
Use the Mouse Scroll Wheel to navigate the Grid.