Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

Radu - Adrian Buha
PLUS
Radu - Adrian Buha
Courses Plus Student 5,535 Points

Is there a Dapper expert around here? I have a question for a project of mine.

Hi.

I'm working at a project for my portfolio and I've got a bit of a setback. I have a project where I try to import values from a database to a dataGridView and I'm using Dapper and stored procedures. The thing is, that the code works, at least to some extent. I managed to get the values from the database into the dataGridView, but the int field shows "zero" values instead of the correct values.

Any help would be greatly appreciated. Thanks!

2 Answers

James Churchill
STAFF
James Churchill
Treehouse Teacher

Adrian,

If there's a GitHub repo that you can share, I'd be happy to take a look at your code.

Thanks ~James

Radu - Adrian Buha
PLUS
Radu - Adrian Buha
Courses Plus Student 5,535 Points

Hi James,

First of all, sorry for my late reply. I was in Holiday and my internet access was not that great. I managed to figure out the problem. The this was I had a naming difference between my C# class and the database.

Many thanks for your support!

Best of wishes, Radu