Enviroment:
Windows Forms C# 4.0 RadGridView (Telerik 2010)
Как автоматически прокрутить GridView, чтобы всегда просматривать последнюю строку?
я хочу что-то вроде:
ListBox1.TopIndex = ListBox.Items.count -1;
, но для GridView
Заранее спасибо ..
Спасибо, я понял, это:
radGridView1.TableElement.ScrollToRow(radGridView1.Rows.Last());
dataGridView1.DataSource = dt;dataGridView1.FirstDisplayedScrollingRowIndex = dt.Rows.count-1;
или
dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows.count-1;
Попробуйте свойство DataGridView.FirstDisplayedScrollingRowIndex.
DataGridView.FirstDisplayedScrollingRowIndex