Solved

JOIN queries VS DataRelation objects

Posted on 2007-04-02
1
716 Views
Last Modified: 2008-01-09
When do you use JOIN queries and when do you use DataRelation objects when working with Gridview?
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 3

Accepted Solution

by:
viveksg earned 250 total points
ID: 18841442
If u want to query parent-child tables and simply display it in gridview, use join. I mean fetch the values from db trhu an SP using JOIN.
Datarelation is used when u have a dataset with dift tables. That means, two tables with parent table values and child table values. Now u can use datarelation to show it in grid view. To make it clear, think u r displaying a list of questions in a page, and u want to display the answer just below it when a user clicks on the question. In these type of scenarios, u can use data relation.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question