This is the code for the search command when hitting the button
If I double click the field and addCode:Private Sub btnMobileDeviceFilter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMobileDeviceFilter.Click ds.Tables(0).DefaultView.RowFilter = "[Mobile_Phone_Type] like '%" & tbMobileDevice.Text & "%'" DataGridView1.DataSource = ds.Tables(0) End Sub
When I enter text it locates the desired findings.Code:ds.Tables(0).DefaultView.RowFilter = "[Mobile_Phone_Type] like '%" & tbMobileDevice.Text & "%'" DataGridView1.DataSource = ds.Tables(0)
Also how can I create a button to execute to clear the field of the box?
Thank you




Reply With Quote