Bind DS to DataGrid in CodeBehind

W

Wayne Wengert

I am trying to use codebehind (VSNet 2003) for the first time and I cannot
get a datagrid to bind to a dataset. I have an SQL Connection, a SQL
DataAdapter and a Dataset. The datagrid has the datasource set to the
dataset and the datamember is set to the adapter table. When I look at the
codebehind I don't see anywhere that the Dataset is "filled". Is that
something I have to code? The code in codebehind defines the connection, the
adapter and the dataset but I don't think it actually loads the dataset.

The examples on MSDN and most other web sites are for inline code.

TIA

Wayne
 

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

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top