2012-01-04 54 views

回答

1
DataRow[] foundRows = yourTable.Select("id=1"); 

或者你可以篩選默認視圖行:

yourTable.DefaultView.RowFilter = "id = 1"; 
GridView gv = new GridView(); 
gv.DataSourse = yourTable.DefaultView 
gv.DataBind()