J
Jorge Bustos
Is there any way to drag & drop a DataSet or DataTable in a Web Form to link
it visually to a gridview, as it was done in ASP.NET 1.1? I can't fnd those
components in the toolbox, and I have tried to add them to it without
success.
I've been able to add a DataTable object as a member of the Web Form class,
and Bind it by using code (myGridView.DataSource = myDataTable,
myGridView.DataBind) But I don't have wizard support to configure the
columns, create the item templates and so on, so all that must be done
without help.
I now I can drop an ObjectDataSource to link directly to it, but, if I do
so, I can't modify the Dataset and keep it in Session to reuse it later.
What I'm trying to do is make several changes to the dataset (in several
postbacks), and when I decide everything it's right, update the changes in
the server. The ObjectDataSource forces me to post the changes to the DB
right when I make a single change in the gridview
If I want my GridView to allow me to do changes, and it's bound to an
ObjectDataSource, which it's in turn bound to my Business objects, it forces
me to implement methods for updating, inserting and deleting in my Business
Layer classes, so my only option is to post the changes to the database or
they're lost because I don't have access to the Page's Session object or any
other store which survives postbacks.
Am I missing something?
Thanks for your time.
it visually to a gridview, as it was done in ASP.NET 1.1? I can't fnd those
components in the toolbox, and I have tried to add them to it without
success.
I've been able to add a DataTable object as a member of the Web Form class,
and Bind it by using code (myGridView.DataSource = myDataTable,
myGridView.DataBind) But I don't have wizard support to configure the
columns, create the item templates and so on, so all that must be done
without help.
I now I can drop an ObjectDataSource to link directly to it, but, if I do
so, I can't modify the Dataset and keep it in Session to reuse it later.
What I'm trying to do is make several changes to the dataset (in several
postbacks), and when I decide everything it's right, update the changes in
the server. The ObjectDataSource forces me to post the changes to the DB
right when I make a single change in the gridview
If I want my GridView to allow me to do changes, and it's bound to an
ObjectDataSource, which it's in turn bound to my Business objects, it forces
me to implement methods for updating, inserting and deleting in my Business
Layer classes, so my only option is to post the changes to the database or
they're lost because I don't have access to the Page's Session object or any
other store which survives postbacks.
Am I missing something?
Thanks for your time.