Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to display the result of stored procedure contains multiple data tables so i want to display in Datagird some of the Left side, some of the Right side as profit & loss account
Posted
Updated 13-Dec-12 14:56pm
v2
Comments
Akbar Ali Hussain 12-Dec-12 16:05pm    
Do you mean multiple DataTables? Create a temp table and merge both tables. Then display temp table on the grid

You need to shape your data so that it makes sense in the context of a grid. Your grid knows how to iterate over rows and show them. Fix your data so it's in a format the grid wants and it will work fine.
 
Share this answer
 
you have to write multiple SELECT statements in your stored procedure. One SELECT query for each table. Then Execute stored procedure and store the result in a dataset. Which will provide you a dataset with multiple table, and you can use those table as you like.

hope it helps. If any clarification needed, please write a comment.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900