473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to access underlying dataset from DataGrid control

What is the best way to access the Underlying data of a DataGrid. I have two SQL tables joined and display some data from both, but I want to be able to on clicking of a row bring up a form that displays all the data. I can come up with some round about ways of doing it, but is there a property of the DataGrid that will make it easier and quicker to do? Thanks.
Nov 20 '05 #1
1 1733
The DataGrid has a DataSource and a DataMember property. The DataSource can
be a DataSet, a DataTable, a DataView, a DataViewManager or a component
implementing IList or IListSource. Which it is depends on how you're bound
to the data. The DataMember is a list in the DataSource (for example a
Table in the DataSet)

Hope this helps.
Craig, VB.Net Team

--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
Thread-Topic: How to access underlying dataset from DataGrid control
thread-index: AcPerpPC1Vd0yqJYSlSjBlvJP3+7zg==
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
From: "=?Utf-8?B?U2Vhbg==?=" <an*******@discussions.microsoft.com>
Subject: How to access underlying dataset from DataGrid control
Date: Mon, 19 Jan 2004 09:06:28 -0800
Lines: 1
Message-ID: <C3**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:174154
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

What is the best way to access the Underlying data of a DataGrid. I have two SQL tables joined and display some data from both, but I want to be
able to on clicking of a row bring up a form that displays all the data. I
can come up with some round about ways of doing it, but is there a property
of the DataGrid that will make it easier and quicker to do? Thanks.



Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

49
by: Relaxin | last post by:
It is just me or has MS created some of the worst ways to access and display data? You can use a DataSet, but if you want to sort or filter the data to must use a DataView which is created from...
4
by: Eric | last post by:
Hi, can anyone guide me throught this: In my application, I have a global DataSet. I then run FTP processes in up to 10 simultaneous threads and each thread calls progress events in the main...
0
by: Nick P | last post by:
I have declared a DataSet Property on by base winform control as follows: public DataSet MessageDs { get { return messageDs; } set
5
by: Richard | last post by:
Windows Forms, csharp, 20 rows in DataTable 14 shown in view after filter applied. For any of the 14 how do I do the datarow or something else thing to access the data in the row of the table...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
3
by: Ben Becker | last post by:
I am trying to build a custom crosstab type of grid where I take some items in a data grid and based on the content of the current item compared to the previous item, determine if a new row in a...
2
by: Brian Mitchell | last post by:
Ok, I know this is an elementary question but I have a data grid that is bound to a data table and I can't seem to find a way to match the selected row in the grid with it's respective row in the...
1
by: Yanesh Tyagi | last post by:
Hi All have a web page named itemList.aspx. It contains a datagrid (id = datagrid1). The web form also have a user control named itemSearch.ascx. This user control have several options to search...
2
by: Carl Heller | last post by:
Working in VS2003, .Net 1.1 I'm working on a project where I compare data between two databases. This is a lengthy process, and very data intensive, so I decided to create a class, and thread...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.