473,405 Members | 2,349 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,405 software developers and data experts.

How do I use the Locals Window to find a value in a Dataset????

How in the heck do I traverse this rediculously long object model to find
out if I actually updated a particular value in my dataset???
Jul 21 '05 #1
6 2090
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
How in the heck do I traverse this rediculously long object model to find
out if I actually updated a particular value in my dataset???

Jul 21 '05 #2
When I run this in the immediate window I get the following:
DsClient1.Tables["ClientByID"].Rows[0]["PersonLastName"]

Identifier expected.

DsClient1 is a typed dataset on my UI.

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
How in the heck do I traverse this rediculously long object model to find out if I actually updated a particular value in my dataset???


Jul 21 '05 #3
do a ToString() at the end.
that works for me
"Aaron Ackerman" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
When I run this in the immediate window I get the following:
DsClient1.Tables["ClientByID"].Rows[0]["PersonLastName"]

Identifier expected.

DsClient1 is a typed dataset on my UI.

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
How in the heck do I traverse this rediculously long object model to find out if I actually updated a particular value in my dataset???



Jul 21 '05 #4
Hello Aaron,

Please be noted that the name of DsClient1 in the immediate window is
case-sensitive.

I also recommend you append Tables["ClientByID"], Rows[0] and
["PersonLastName"] gradually to DsClient1 in the immediate window, and
check which one causes the problem.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5
Nope that doesn't work same error.

"George Durzi" <gdurzi@nospam_hotmail.com> wrote in message
news:ub**************@TK2MSFTNGP12.phx.gbl...
do a ToString() at the end.
that works for me
"Aaron Ackerman" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
When I run this in the immediate window I get the following:
DsClient1.Tables["ClientByID"].Rows[0]["PersonLastName"]

Identifier expected.

DsClient1 is a typed dataset on my UI.

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
> How in the heck do I traverse this rediculously long object model to

find
> out if I actually updated a particular value in my dataset???
>
>



Jul 21 '05 #6
"Aaron Ackerman" <no@spam.com> wrote in news:#yGhr2djDHA.2328
@TK2MSFTNGP10.phx.gbl:

DsClient1.Tables["ClientByID"].Rows[0]["PersonLastName"]

Identifier expected.

DsClient1 is a typed dataset on my UI.


If it's a typed dataset, shouldn't you be able to type:

DsClient1.ClientByID(0).PersonLastName

?

Chris

Jul 21 '05 #7

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

Similar topics

15
by: Paul Paterson | last post by:
I am trying to find a way to mimic by-reference argument passing for immutables in Python. I need to do this because I am writing an automated VB to Python converter. Here's an example of the VB...
2
by: tedsuzman | last post by:
----- def f(): ret = 2 exec "ret += 10" return ret print f() ----- The above prints '12', as expected. However,
2
by: Marc Miller | last post by:
When I am debugging my .NET webforms, I cannot open my watch and locals windows nor any other of the debugging windows. Does anyone know what the catch is? Is this like the bug with the...
0
by: Armin Zingler | last post by:
Hello, to reproduce the follwoing steps, "managed DirectX" must be installed. Despite, this is not a DirectX but an IDE problem (at least in VB.Net). As nobody answered in m.p.vsnet.ide and...
4
by: Anna Quick | last post by:
I am quite new to javascript, and don't seem to find the problem with stupid internet explorer. The script works fine in safari and mozilla. I searched the groups, but evidently put in the wrong...
5
by: Aaron Ackerman | last post by:
How in the heck do I traverse this rediculously long object model to find out if I actually updated a particular value in my dataset???
6
by: SkeanDu | last post by:
Ok, here is my problem. I have an aspx page that displays a databound datagrid and in one of the datagrid column headers I have an image that when clicked opens up a modal web dialog (another...
2
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I want to give a user the possibility of "restarting" an interactive session, by removing all the objects defined by her since the beginning. The way I make this possible is by having a "function"...
4
by: rocksportrocker | last post by:
Hi, the following code does not work until I ommit the "a=0" statement. def test(): exec "a=3" in locals() print a a=0
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.