How to manual databinding in VS2005 Express ?

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?
 
B

Brock Allen

Set the DataSource to something that is a collection, so a DataReader, DataTable,
DataSet, Array, whatever. Then call DataBind.

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

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

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top