Scroll DataGridView to the bottom

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,
 
F

Frank Werner-Krippendorf

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
 
G

Guest

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top