© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
5 replies
michael

✅ System.IndexOutOfRangeException

I tried to insert some rows from my Database and when I run and check in the Form it tells me this: "System.IndexOutOfRangeException"

here is the part where the error is present: dataGridView1.Rows.Add(reader["customer_name"].ToString(), reader["order_date"].ToString(), reader["total_amount"].ToString(), reader["product_name"].ToString());
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ ✅ IndexOutOfRangeException
C#CC# / help
3y ago
IndexOutOfRangeException? Why??
C#CC# / help
2y ago
❔ System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
C#CC# / help
3y ago
❔ System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
C#CC# / help
3y ago