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.