BlakeMcKenna
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
Screenshot.jpg
Screenshot2.jpg
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.
At the present, the dgv is empty even though the dbUnit table contains records.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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?
ASKER
mankowitz,
Not sure what I was thinking but your right, I did follow your suggestion! You get the credit!
Not sure what I was thinking but your right, I did follow your suggestion! You get the credit!
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.