Deborah's Developer MindScape






         Tips and Techniques for Web and .NET developers.

July 10, 2009

DAL: DataTable Visualizer

Filed under: C#,Data,Debugging,VB.NET @ 3:05 pm

This post details how to use the DataTable Visualizer. The DataTable Visualizer is a debugging tool that allows you to see and edit the contents of a DataTable while you are debugging.

NOTE: There is also a DataSet Visualizer that works the same way for DataSets instead of DataTables.

To use the DataTable Visualizer:

  1. Set a break point on any line of code after you have a DataTable populated.
     
  2. Run your application until it stops at the break point.
     
  3. Hover over your DataTable variable.
    You should get a tooltip that displays a magnifying glass. image
    Note: Though this example shows C# code, this technique works the same in VB.
     
  4. Click on the arrow next to the magnifying glass to display the drop down menu.
    image
  5. Select the "DataTable Visualizer" menu option.
    The DataTable contents is then displayed:
    image

This allows you to view your DataTable and optionally update the data in the table for debugging or testing.

Enjoy!

3 Comments

  1.   Carine — October 21, 2009 @ 5:00 am    Reply

    Thank You so much !! i was lookin 4 it since more than 1 month.. i just found the solution 🙂

  2.   Tadit — October 4, 2011 @ 9:10 am    Reply

    Thank you Deborah Kurata. It’s really helpful….

  3.   RICHARD — December 28, 2016 @ 8:06 am    Reply

    AWESOME! Thank you!

Trackbacks/Pingbacks

  1. How to view a DataTable while debugging | ASK AND ANSWER

RSS feed for comments on this post. TrackBack URI

Leave a comment

© 2023 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs