2010-04-15 41 views

回答

-1

你可以嘗試像

this.SelectRowCell(this.Items.Count - 1, 0); 

但我不知道這將設置焦點了。如果沒有,請嘗試以下操作:

DataGridCell cell = this.GetCell(this.Items.Count - 1, 0); 

if (cell != null) 
{ 
    cell.Focus(); 
} 
相關問題