2011-09-06 33 views

回答

3

你可以做到以下几点:

this.gridControl1.CurrentRow = this.gridControl1.DataRows[100]; 
this.gridControl1.CurrentRow.BringIntoView(); 
this.gridControl1.FirstVisibleRow = this.gridControl1.CurrentRow; 
this.gridControl1.SelectedRows.Add(this.gridControl1.CurrentRow); 

呼吁的DataRow的BringIntoView会让GridControl滚动一路DataRow中所处的位置。将GridControl上的FirstVisibleRow设置为您的CurrentRow将在GridControl视图的顶部有DataRow。

相关问题