
Hi friends ,
When i try to load data from sql database into datagridview , the system give me the error dialog above , Can any one help me for this . Thanks .



Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VikramRank #9,295 · 208 reputationPosted Jun 28, 2010, 3:21 AM EDT
It seems to me as Data Type of the columns you defined in DataGridView at the design time are not matching with the DataColumn in the DataSource which you are populating from database in Dataset or DataTable.
Make sure the DataType of the Columns in DatGridView and DataSource Should be same.
Hope this will help you.
Regards,
VIkram