Raddict
Active member
Hi,
it's been a while but I'm burning my fingers once again on databases
I'm trying to make a tool that copies records from one database to another similar database (SQL).
I made a form containing 2 datagrids, one as source and the other as target.
I try to use:
But DataGridView1.Item(2, 0).Value for instance has no value. This seems to result in a "invalid cast exeption".
the type for the value is system.nullable(of short) according to vb.net
I hope someone can shed some light on this.
it's been a while but I'm burning my fingers once again on databases
I'm trying to make a tool that copies records from one database to another similar database (SQL).
I made a form containing 2 datagrids, one as source and the other as target.
I try to use:
VB.NET:
Me.ToolTableAdapter.Insert(DataGridView1.Item(1, 0).Value, DataGridView1.Item(2, 0).Value, DataGridView1.Item(3, 0).Value
But DataGridView1.Item(2, 0).Value for instance has no value. This seems to result in a "invalid cast exeption".
the type for the value is system.nullable(of short) according to vb.net
I hope someone can shed some light on this.