How to assign the value to combobox when field is of int type.
Posted on 2012-04-06
s = "select distinct id from mststudents where deoflag=0 order by id"
da = New SqlDataAdapter(s, con)
dt = New DataTable()
Dim newCustomersRow As DataRow = dt.NewRow()
newCustomersRow("id") = "--Select TID--"
.DisplayMember = "id"
.ValueMember = "id"
.DataSource = dt
//error comes is Input string was not in a correct format.Couldn't store <--Select TID--> in id Column. Expected type is Int64.