Hello....


Can someone tell me why this code doesn't workand how it should be done?

DataGridView1.Item(0, 0) = ds2.Tables("tabCeniki").Rows(i).Item(0)

this is the error mmgBox ........ Unable to cast object of type 'System.Int32' to type 'System.Windows.Forms.DataGridViewCell'.

thx dr.E

Recommended Answers

All 2 Replies

DataGridView1.Item(0, 0).Value = ds2.Tables("tabCeniki").Rows(i).Item(0)

thank you..... the best forum for any solution

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.