c# - How can I easily view the contents of a datatable or dataview in the immediate window -


Sometimes I will be on a breakpoint in my code, and I have a data variable (or a dataset) in a data variable). Quick Clock does not give you a very clear view of content. How can I easily see them?

The Visual Studio debugger comes with four standard visualizers. These are text, HTML, and XML visualizers, which work on all string objects, and dataset visualizer, which works for datasets, databases, and datatable objects.

To use it, use your code, mouse over your dataset, expand the Quick Clock, view tables, expand it, then see the table [0] (for example). You will see something like {Table1} in Quick Clock, but note that there is also a magnifying glass icon and click on that icon and your data tab will open in a grid view.


Comments