Binding a typed dataset to a GridView [2.0]

  • Thread starter Thread starter Markus Palme
  • Start date Start date
M

Markus Palme

Hi NG!

I've created a typed dataset by dropping a table from the server
explorer to the dataset designer. I bound this DataSet to a GriedView
using a ObjectDataSource. The data is being displayed correctly.

I encounter now a problem with editing the data. Not all columns are
displayed, only some (AutoGenerateColumns == false), therefore I can't
use the default "Update" methode of the generated DataSet because it
required all columns as parameters.

What are the possibilites to solve this problem? Any recommendations?

Thanks
Markus
 
1st. Stop to use the DataGrid - use GridView instead
2nd The ObjectDataSource should be used with BusinessObjects in an N-Tier
Applictaion and not with a dumb generic data container as the DataSet!

Build your BusinessObjects use the ObjectDataSource with the GridView!
 

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