G
Guest
Hi,
I created a DataAdapter, connection object and dataset generated from
DataAdapter by dragging DataAdapter compenent to win form. Now in the code
behind I want to use that DataAdapter. I go to use the dataset that was
generated from DataAdapter and I get an Object ref error. So do I have to go
through the steps in code behind to reinitate the SqlDataAdapter and DataSet
that I generated on the form? If so whats the purpose of having the wizard
generate a SqlDataAdapter on the form to use? The SqlDataAdapter Wiz created
all my stored procedures in my database. So in code behind I would need to
resetup the SqlDataAdapter to use those sp's. That doesn't make sense. What
do I need to do in order to use the generated SqlDataAdapter and DataSet?
Thanks,
JJ
I created a DataAdapter, connection object and dataset generated from
DataAdapter by dragging DataAdapter compenent to win form. Now in the code
behind I want to use that DataAdapter. I go to use the dataset that was
generated from DataAdapter and I get an Object ref error. So do I have to go
through the steps in code behind to reinitate the SqlDataAdapter and DataSet
that I generated on the form? If so whats the purpose of having the wizard
generate a SqlDataAdapter on the form to use? The SqlDataAdapter Wiz created
all my stored procedures in my database. So in code behind I would need to
resetup the SqlDataAdapter to use those sp's. That doesn't make sense. What
do I need to do in order to use the generated SqlDataAdapter and DataSet?
Thanks,
JJ