the problem is in datRead.GetString(X) you says give me string, he (VS) replies I don't have string, I've Int32 what shall I do for you.
Check the data types in your table if you have column of Int32 use GetInt32(X) or if you've column of bit use GetBoolean(X)
Hope it solve.
Reputation Points: 480
Solved Threads: 276
Postaholic
Offline 2,189 posts
since Aug 2006