Jump to content
Posted 28 July 2005 - 10:33 AM
Posted 28 July 2005 - 10:39 AM
Posted 28 July 2005 - 10:53 AM
Posted 28 July 2005 - 11:09 AM
Original post by Strayfire
Sorry, I haven't really had much experience with any of these classes up until now. Could you please provide an example?
DataSet ds = GetMyData(); //Get the DataSet you want to work with (usually from a database)
DataView dv = new DataView(ds.Tables(0)); //Create a DataView that is a 'view' of one of the tables in our DataSet. We will use this to sort and filter.
//Sort and Filter Here
dv.Sort = "FirstName";
dv.RowFilter = "LastName='Smith'";
//Set the DataView to be the DataGrid's source for info, and then call DataBind()
myDataGrid.DataSource = dv;
Posted 29 July 2005 - 12:40 AM
Posted 29 July 2005 - 03:59 AM
Original post by Anonymous Poster
There doesn't seem to be a DataBind() method. Is that just for web forms?