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

A

Aaron Ackerman

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???
 
R

Rick Strahl [MVP]

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
 
A

Aaron Ackerman

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 said:
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 said:
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???
 
G

George Durzi

do a ToString() at the end.
that works for me


Aaron Ackerman said:
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 said:
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 said:
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???
 
A

Aaron Ackerman

Nope that doesn't work same error.

George Durzi said:
do a ToString() at the end.
that works for me


Aaron Ackerman said:
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 said:
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


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???
 
C

Chris Dunaway

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top