'I Call This Process on Form Load Public Sub GetSubAuditProcess() rdr.Close() If Connection.State = ConnectionState.Closed Then Connection.Open() End If cmdString = "SELECT * FROM B14_ALT_SUREC WHERE Alt_Surec IS NOT NULL GROUP BY MANDT, ID, Alt_Surec ORDER BY ID" DataAdp = New SqlDataAdapter(cmdString, Connection) DataAdp.Fill(dset) Connection.Close() dv.Table = dset.Tables(0) dgSubProcess.Rows.Clear() dgSubProcess.DataSource = dv If Connection.State = ConnectionState.Open Then Connection.Close() End If End Sub 'This is TextBox TextChange Event Private Sub txtSubProcess_TextChanged(sender As Object, e As EventArgs) Handles txtSubProcess.TextChanged dt.AcceptChanges() dv.RowFilter = "Alt_Surec LIKE '%" + txtSubProcess.Text + "%'" End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)