2012-10-17 115 views

回答

0

它叫RowHeaderWidth不是項目的邊際。所以,你必須做的只是設置RowHeaderWidth="0"

+0

非常感謝,終於找到了:) – Omid

0

您可以使用刪除屬性從GridView中刪除所選項目。
例如:

if(datagrid.SelectedIndex >= 0) 
{ 
    Student student = datagrid.SelectedItem as Student; 
    col.Remove(student); 
}