Link to home
Start Free TrialLog in
Avatar of BlakeMcKenna
BlakeMcKennaFlag for United States of America

asked on

Not sure about this error?

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.
Screenshot.jpg
Screenshot2.jpg
Avatar of mankowitz
mankowitz
Flag of United States of America image

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.
Avatar of BlakeMcKenna

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of mankowitz
mankowitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
So you followed my advice and got to the right place. Why wouldn't you award points for that?
mankowitz,

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