Carl Prothman's .NET Blog

From the mind of an .NET Developer...

Viewing the Contents of a DataSet while in Debug Mode

While in debug mode in Visual Studio .NET, do you ever get tired
of typing in the following commands into the Intermediate window?

    ?ds.Tables(0).Rows(0).Item(0)
Or
    ?ds.Tables(0).Columns(0).ColumnName

Well there is an easier way to see the contents of a DataSet! 
Try typing in the following:

    ?ds.GetXml
Or
    ?ds.GetXmlSchema

Enjoy!

 

Comments

John said:

Cool Tip! Thanks a bunch.

John
# January 19, 2004 12:29 PM

Radoslav said:

Helped me a lot! Thanks.

Radoslav

# August 26, 2009 6:33 AM

dev1dev1 said:

it did not work in VS2008

# October 6, 2011 11:56 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)