May 1, 2020 09:08 AM
(This post was last modified: May 1, 2020 09:18 AM by Kαѕρer.)
I'm trying to fill 2 datagrids with 2 different tables from one database.
I had an error first saying I got an open connection so I changed this:
to this:
But now I'm getting the error:
Researched on internet but have no clue how to fix this.
If you might be able to help me, hit me up. I would appreciate it.
Thanks!
I had an error first saying I got an open connection so I changed this:
Code
conn.Open();to this:
Code
if (conn.State == ConnectionState.Closed)
{
conn.Open();
}But now I'm getting the error:
Code
There is already an open DataReader associated with this command which must be closed firstResearched on internet but have no clue how to fix this.
If you might be able to help me, hit me up. I would appreciate it.
Thanks!


