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

Top 5 Contributors of the Month

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

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.

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

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!!!

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

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