.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Gridview display

Posted By: Shanthini     Posted Date: June 22, 2009    Points:2   Category :ASP.Net
Hi,

I want to display data from two different data sources in a single gridview.

a 1 2 3
b 1 3 4
c 2 1 3
d 2 4 2

In above gridview, the a,b,c,d values will come from one table and the 1,2,4,3 etc.. will come from one table.

How to get the values from different sources and display it in gridview. Please provide me the C# codes.

Responses
Author: Praveen             
Posted Date: June 22, 2009     Points: 5   

Hi,
There are couple of ways you can do that

1) Using SQL Query level using Joining the different tables.

2) In front end Merge two dataset using dataset.Merge() method

I would prefer you should go with 1st method.

Happy Coding!!!
Praveen



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend