Explain DataView
It provides a means to filter and sort data within a data table.
Example:
DataView myDataView = new DataView(myDataSet.Tables["Customers"]);
// Sort the view based on the FirstName column
myDataView.Sort = "CustomerID";
// Filter the dataview to only show customers with the CustomerID of ALFKI
myDataView.RowFilter = "CustomerID='ALFKI'";
No comments:
Post a Comment