Binding a typed dataset to a GridView [2.0]

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
 
D

Daniel Fisher\(lennybacon\)

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top