Set ScrollBars property of your Datagridview to False.
ScrollBars =None
Add
hScrollBar and
vScrollBar to your form.
In your
hScrollBar Scroll Event
private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
dataGridView1.HorizontalScrollingOffset = hScrollBar1.Value;
}
In your
vScrollBar Scroll Event
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
dataGridView1.FirstDisplayedScrollingRowIndex = vScrollBar1.Value;
}