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

  • Thread starter Thread starter Aaron Ackerman
  • Start date Start date
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???
 
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
 
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???
 
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???
 
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.
 
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???
 
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
 
Back
Top