Viewing Data in a DataSet during debug

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

Is there any way to view what data is populating my DataSet tables during
debugging?

Thanks,
Ryan
 
Hi Ryan,

Thank you for posting.

To view what data is populating the DataSet tables during debugging, you
could set a break point after the code retrieving data from the database
into the DataSet. Press F5 to start debugging this program. When the
program runs to the break point, it enters into debug mode.

When the program is in debug mode, you could point your mouse to the
datatable in your code to view the data in the datatable. For example, I
use the following statement to populate the datatable in my program:
Me.ClassesTableAdapter.Fill(Me.TestDataBaseDataSet.Classes)

I just point my mouse over the "Me.TestDataBaseDataSet.Classes" and a tip
will ocurr under this expression. Click the chevron in the tip and a
dropdown menu "DataTable Visualizer" appears. Click this menu and a DataSet
Visualizer window appears. In this window, all data in the datatable is
displayed in a datagridview.

Please try my suggestion.
If you have anything unclear, don't hesitate to tell me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================
 
Back
Top