viper5646
Active member
hello.
I have used Like operator to search for String data with no problem.
Now I am trying to search 5 numeric integer. Beginning with the first number entered then the second and so on. ex. if I have a number 12345 when the user enters "1" every number starting with 1 will display if entered "12" every number starting with 12 will be displayed and so on.
I have tried some code but it returs the folowing error:" Cannot perform 'Like' operation on system.int32 and system.string.
this is my code:
I have used Like operator to search for String data with no problem.
Now I am trying to search 5 numeric integer. Beginning with the first number entered then the second and so on. ex. if I have a number 12345 when the user enters "1" every number starting with 1 will display if entered "12" every number starting with 12 will be displayed and so on.
I have tried some code but it returs the folowing error:" Cannot perform 'Like' operation on system.int32 and system.string.
this is my code:
VB.NET:
Private Sub srchDesign_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles srchDesign.TextChanged
strSearch = srchDesign.Text
designview.RowFilter = "design Like'*" & (strSearch) & "*'"
End Sub