Scroll DataGridView to the bottom

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've a dataGridView and i want that when i start my form, the dataGrid will
be scrolled to the last row instead to the first.

How can i do it?

Thanks,
Gidi,
 
Hello Gidi,

if you don't use a bindingsource (navigator) then this may help:

this.dataGridView1.CurrentCell = this.dataGridView1[0, this.dataGridView1.Rows.Count
- 1];

Regards

Frank Werner-krippendorf
 
Thanks a lot !

Frank Werner-Krippendorf said:
Hello Gidi,

if you don't use a bindingsource (navigator) then this may help:

this.dataGridView1.CurrentCell = this.dataGridView1[0, this.dataGridView1.Rows.Count
- 1];

Regards

Frank Werner-krippendorf

Hi,

I've a dataGridView and i want that when i start my form, the dataGrid
will be scrolled to the last row instead to the first.

How can i do it?

Thanks,
Gidi,
 
Back
Top