Re: New to ADO2.net
- From: "MS MVP ³sÀA¶¯ for VB.NET" <kenlin2000@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Mar 2006 14:27:55 +0800
Dear Phonl,
If you propose is only displaying the data, you may also use dataReader.
U may use dataReader1.read and then dataReader1.getValue(column_index)
to get the value.
--
Hope this help and welcome to reply the testing result.
Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most Valuable Professional(.NET since 2003)
MCT2004 & 2005
"Kevin Yu [MSFT]" <v-kevy@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:azgwwrITGHA.6492@xxxxxxxxxxxxxxxxxxxxxxxx
Hi phonl,
To get the myField value, you can get from DataSet directly. DataSet is a
collection of tables. For example, the myField is in the first table, we
can use the following to get the myField value in first row.
MessageBox.Show(Dataset1.Tables[0].Rows[0]["myField"]);
HTH
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
.
- References:
- New to ADO2.net
- From: phonl
- RE: New to ADO2.net
- From: Kevin Yu [MSFT]
- New to ADO2.net
- Prev by Date: Re: Regular Expressions Problem
- Next by Date: Re: Windows Forms to Web App
- Previous by thread: RE: New to ADO2.net
- Next by thread: VB.NET Thread Garbage Collection
- Index(es):