How to manual databinding in VS2005 Express ?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

We must manually fill a dataset and bind a dataGrid when we want to display
data in a datagird in the VS2003.
The two steps will auto execute in VS2005 Express win SqlDatasource and
GridView
But I want these steps to do manually.
How an I set them?
 
Set the DataSource to something that is a collection, so a DataReader, DataTable,
DataSet, Array, whatever. Then call DataBind.

_grid.DataSource = yourCollectionOfData;
_grid.DataBind();

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Back
Top