Question

Enviroment:

   Windows Forms 
   C# 4.0
   RadGridView (Telerik 2010)

How do i automaticaly scroll GridView to always view Last Row ?

i want something like :

ListBox1.TopIndex = ListBox.Items.count -1;

but for GridView

Thanks in advance..

Was it helpful?

Solution

Thanks i got it , its :

  radGridView1.TableElement.ScrollToRow(radGridView1.Rows.Last());

OTHER TIPS

Try the DataGridView.FirstDisplayedScrollingRowIndex property.

dataGridView1.DataSource = dt; dataGridView1.FirstDisplayedScrollingRowIndex = dt.Rows.count-1;

or

dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows.count-1;

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top