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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top