trimakassi
Programmer
I created a subroutine to filter a dataview and i want to pass the colum to be filtered through a declared string variable
ex. lets say I want to filter the date column
x="date"
then i call the routine and send x
in the routine i have a dataview.rowfilter that looks like this
Private Sub Filter(ByVal dtv As DataView, ByVal x As String)
Try
dtv.RowFilter = " '" & x & "' = '" & CInt(txt1.Text) & "'"
Catch ex As Exception
End Try
End Sub
this returns a blank databview
please help
thanks
trimakassi
ex. lets say I want to filter the date column
x="date"
then i call the routine and send x
in the routine i have a dataview.rowfilter that looks like this
Private Sub Filter(ByVal dtv As DataView, ByVal x As String)
Try
dtv.RowFilter = " '" & x & "' = '" & CInt(txt1.Text) & "'"
Catch ex As Exception
End Try
End Sub
this returns a blank databview
please help
thanks
trimakassi