Not sure about this error?

Posted on 2014-09-11
Last Modified: 2014-09-15
If you look at the screenshot, it will show a breakdown of attributes of a DataTable. The image should be self-explanatory as far as the red "X" is concerned. The other screenshot shows the highlighted line of code where this occurs. Executing that line of code is successful and it actually loads the "dbUnits" table with 25 rows of data.
Question by:BlakeMcKenna
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 24

Expert Comment

ID: 40318257
That's not really an error. It's just saying that the debugger won't look into the datarowcollection unless you specify an index. Specifically,

dbUnit refers to the whole table
dbUnit.rows refers to the datarowcollection
dbUnit.rows(0) refers to the first row in the datarowcollection.

The debugger is telling you that it doesn't want to display all the data from all the datarows until you specify which row you are looking at.

Author Comment

ID: 40318278
Well...this function is suppose to load a DataGridView with various number of records. The "dbUnit" DataTable is created dynamically. I'm really not sure what to do.

At the present, the dgv is empty even though the dbUnit table contains records.
LVL 24

Accepted Solution

mankowitz earned 500 total points
ID: 40318398
I'm not sure what to tell you. Your screenshot shows that dbUnit has 25 rows in it. What happens when you mouse over the dgv? Is it empty? Have you considered using a bindingsource?
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Author Comment

ID: 40321372
I've requested that this question be deleted for the following reason:

I figured it out. I actually went with a BindingSource and that took care of the problem.
LVL 24

Expert Comment

ID: 40321373
So you followed my advice and got to the right place. Why wouldn't you award points for that?

Author Comment

ID: 40322992

Not sure what I was thinking but your right, I did follow your suggestion! You get the credit!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question