Hi All,
Im trying to search a record from an dataset this is my code
Dim temptable As DataTable
temptable = ds.Tables("Customers")
Dim dv As New DataView(temptable)
dv.Sort = "LLID"
Dim i As Integer = dv.Find(customers.SelectedValue)
If i = -1 Then
Response.Write("not found")
Else
Response.Write("found")
End If
every time i run this it gives me error on "dv.sort = "LLID"" that datatable should be set prior to use this function. I dont know what it means as from the code the table is set. what else has to be set or if some one has better idea the please assist me solving this.
Thankyou
Im trying to search a record from an dataset this is my code
Dim temptable As DataTable
temptable = ds.Tables("Customers")
Dim dv As New DataView(temptable)
dv.Sort = "LLID"
Dim i As Integer = dv.Find(customers.SelectedValue)
If i = -1 Then
Response.Write("not found")
Else
Response.Write("found")
End If
every time i run this it gives me error on "dv.sort = "LLID"" that datatable should be set prior to use this function. I dont know what it means as from the code the table is set. what else has to be set or if some one has better idea the please assist me solving this.
Thankyou