i have the following code
Dim i As Integer i = Me.GridDomains.CurrentRow.Index Me.lbdomainid.Text = GridDomains.Item(0, i).Value
when i have complied it in visual studio 2010 (debug)
i get a error saying
system.data.sqlclient.sqlexceptions conversion faild when converting varchar value LBdomainID to data type int.
in sql the datatype is INT - i dont know what to do with the code above to remove this error
i have tryied
Cint(GridDomains.Item(0, i).Value).tostring but this doesnt work. thought i was so close with finishing my first .net program but was so wrong.