Solved

Not sure about this error?

Posted on 2014-09-11
7
114 Views
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.
Screenshot.jpg
Screenshot2.jpg
0
Comment
Question by:BlakeMcKenna
  • 3
  • 3
7 Comments
 
LVL 24

Expert Comment

by:mankowitz
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.
0
 

Author Comment

by:BlakeMcKenna
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.
0
 
LVL 24

Accepted Solution

by:
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? http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.datasource(v=vs.110).aspx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:BlakeMcKenna
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.
0
 
LVL 24

Expert Comment

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

Author Comment

by:BlakeMcKenna
ID: 40322992
mankowitz,

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - Oracle BulkCopy from CSV Date Format 7 47
update textboxes with Streamreader 21 42
Close tabpage of custom control 9 24
Crystal reports vb.net 2 23
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now