Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > merging multiple datasets to bind to a grid

Reply
Thread Tools

merging multiple datasets to bind to a grid

 
 
Rock
Guest
Posts: n/a
 
      11-19-2004
How can I merge 2 datasets into one, then bind with the datagrid, or bind
the datagrid to 2 datasets? For instance, I have one stored procedure that
finds company name, address, etc., and another stored procedure that finds
employees of that company and the employee information.

Thanks.


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      11-19-2004
Couple ways of doing this, you can call merge on the tables in question or
you can build a new dataset from both datasets by iterating both. If you
choose the latter, as you iterate and add, you need to remove so that you
don't have duplicates on the second pass.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Rock" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How can I merge 2 datasets into one, then bind with the datagrid, or bind
> the datagrid to 2 datasets? For instance, I have one stored procedure
> that
> finds company name, address, etc., and another stored procedure that finds
> employees of that company and the employee information.
>
> Thanks.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do Datasets manage to get deserialized as DataSets instead of a wsdl.exe-created proxy class? Francisco Garcia ASP .Net 2 04-13-2006 10:41 AM
How do Datasets manage to get deserialized as DataSets instead of a wsdl.exe-created proxy class? news.microsoft.com ASP .Net 0 04-12-2006 09:07 AM
Merging datasets for datagrid not working .Net Sports ASP .Net Web Controls 0 07-22-2005 04:33 PM
Merging datasets for datagrid not working .Net Sports ASP .Net 0 07-22-2005 04:33 PM
Merging datasets Dan Cooper ASP .Net 2 01-28-2004 04:21 AM



Advertisments