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!
 
Back
Top