I found the answer to my own question. By reducing the height of the data
grid client rectangle to the size of the header, I can then test if the point
to client is within the header. Then using FirstDisplayedScrollingRowIndex, I
can force either a scroll up or down.
Rectangle rectangle = this.datagrid.ClientRectangle;
if (e.Y > rectangle.Bottom)
this.datagrid.FirstDisplayedScrollingRowIndex =
Math.Min(this.datagrid.FirstDisplayedScrollingRowIndex +
1,this.datagrid.Rows.Count - 1);
rectangle.Height = this.datagrid.ColumnHeadersHeight;
if (rectangle.Contains(point) == true)
this.datagrid.FirstDisplayedScrollingRowIndex =
Math.Max(this.datagrid.FirstDisplayedScrollingRowIndex - 1,0);
}
> I'm trying to figure out how to scroll the screen on a drag/drop DragOver
> event for a DataGridView. I've got it scrolling down. I need some help in
[quoted text clipped - 15 lines]
>
> }