Error like en system.int32

buen día

espero me puedan ayudar con este error

no se puede realizar la operación like en system.int32 y system.string

que me parece al ejecutar el siguiente código

Private Sub buscar()
Try
Dim ds As New DataSet
ds.Tables.Add(dt.Copy)
Dim dv As New DataView(ds.Tables(0))
Datapersonas.DataSource = dv
dv.RowFilter = String.Format(" RU like '%{0}%'", Textbuscar.Text)
If dv.Count <> 0 Then
Sin_registro.Visible = False
Datapersonas.DataSource = dv
Else
Sin_registro.Visible = True
Datapersonas.DataSource = Nothing
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

"RU" es un campo tipo integer y contiene una registro numérico, quiero que a través de un filtro en el datagripview me aparezca la información relacionada a ese registro

Añade tu respuesta

Haz clic para o