A.把SqlCommand對象的CommandType屬性改為CommandTypText;CommandText屬性改為:SELECT*FROMprocProductListORDERBYProductNamDESC;綁定DataGrid數(shù)據(jù)源來自datatable對象
B.基于DataTable對象創(chuàng)建一個新的DataView對象;將DataView對象的排序?qū)傩栽O(shè)置為ProductNamDESC;綁定DataGrid數(shù)據(jù)源來自datatable對象
C.將DataGrid的AllowSorting屬性設(shè)置為真;設(shè)置DataGridColumn的SortExpression屬性使ProductName顯示為ProductNamDESC;綁定DataGrid數(shù)據(jù)源來自datatable對象
D.將DataTable對象的DisplayExpression屬性設(shè)置為ORDERBYProductNamDESC;綁定DataGrid數(shù)據(jù)源來自datatable對象