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

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

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