What is the best way to visualize a DataTable while debugging?

10,373

Solution 1

Use the DataTable visualizer; hold your mouse over the variable and click on the magnifying glass this will open the DataTable visualizer.

Btw, there are more VS2010 visualizers for other actions. I really like the WPF Tree visualizer: hold your mouse on a WPF control and click the magnifying glass ;-)

Solution 2

Open the DataSet visualizer. Either hover over the variable in the source code or look at one of the variables in a debugger window (Locals, Auto, etc.) Then click the magnifying glass.

MSDN article on How to Use a Visualizer.

Share:
10,373
Oren A
Author by

Oren A

Web developer using ASP.NET and now starting ASP.NET MVC

Updated on July 22, 2022

Comments

  • Oren A
    Oren A almost 2 years

    I have some very big DataTables, which I need to see their content while debugging.
    Is there a better way to do that other than opening the Columns' and rows' lists Properties in the Watch panel?

    Thanks.

  • Oren A
    Oren A over 13 years
    Thanks for the quick answer. How do you get there? (-:
  • Contristo
    Contristo almost 11 years
    Helping people 3 years in the future. Thanks!
  • Ali Saeed
    Ali Saeed almost 9 years
    Helping people 5 years in the future. This is super awesome! Thanks Microsoft