Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Filter Record By Number & show in datagridview

$
0
0

I have One numeric text box, one button & a datagrid view, i enters a number which is PartId ( long integer ) in textbox & press button to filter the records as follow

Dim dv As DataView = Me.EMSTES9300DataSet1.Tables(3).DefaultView
dv.RowFilter = "ID = " &  CLng(TXTBOX.TEXT) & "'"
ProfilesDataGridView.DataSource = dv
Me.ProfilesTableAdapter1.Fill(Me.EMSTES9300DataSet1.profiles)
ProfilesDataGridView.Refresh()

BUT NOTHING IS DISPLAYED

Can anybody help me?

thanks.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>