How to Autoscroll in WinForm?
Hi,
I have one scrolling problem and don't know yet how to fix it.
On Form I have a big datagrid that have about 40 columns, form has scroll bar so user could scroll on left and right to view data. My problem is, this datagrid has drag/drop functionality. User will drag item from last column and will drop on first column.
When user dragging the item from last column and moving towards first column to drop the item. Grid doesn't scroll automatically and mouse stops on
the last showing column on left side. How could I set the autoscrolling so you can drop this item on first column.
Please help, anybody give me idea how to control this auto scrolling.
Thanks
Re: How to Autoscroll in WinForm?
I don't understand, are the DataGridView larger than the Form? Why not size the grid to the form and let the grid show the scrollbars instead of the Form?
Re: How to Autoscroll in WinForm?
Hi, Thanks for the reply..
I have scroll bars on datagridview, but when I drag the item and move to toward invisible column to drop. Datagridview doesn't scroll, it stop at form boundries.
How could I scroll datagridview without click on scroll bar, is there any way..
Please help