Solved

JOIN queries VS DataRelation objects

Posted on 2007-04-02
1
718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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