views:

418

answers:

3

I have datagridview that has 25 to 100 rows. I am performing a task in seperate thread .Each row depicts a single task. I am selecting the row on which task is performing, if suppose the row is 15 which is invisible then I want to move that row to the visible area. It will autoscroll to the selected row..

+1  A: 

I guess if you select a row programatically, it will scroll to it.

or you can use FirstDisplayedScrollingRowIndex or FirstDisplayedCell member to make it first cell on the top left

Ahmed Khalaf
+2  A: 

Use the DataGridView.FirstDisplayedScrollingRowIndex Property

BFree
+1  A: 

try this:

        dataGridView1.FirstDisplayedScrollingRowIndex = 15;
Khadaji