Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub txtSearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged
Dim aFilter As String = ""
'//Search name starts with
aFilter = "LastName Like '" & txtSearch.Text & "*'"
' //To Search name contains..
' //Uncomment the next line
'aFilter = "LastName Like '" & "*" & txtSearch.Text & "*'"
'//Create the filter string.
If txtSearch.Text.Trim = "" Then
aFilter = ""
Else
aFilter = aFilter
End If
'//Apply the filter.
ds_Northwind.Tables("Employees").DefaultView.RowFilter = aFilter
End Sub
private void txtSearch_TextChanged(object sender, System.EventArgs e)
{
string aFilter = "";
////Search name starts with
aFilter = "LastName Like '" + txtSearch.Text + "*'";
// //To Search name contains..
// //Uncomment the next line
//aFilter = "LastName Like '" & "*" & txtSearch.Text & "*'"
////Create the filter string.
if (txtSearch.Text.Trim() == "")
{
aFilter = "";
}
else
{
aFilter = aFilter;
}
////Apply the filter.
ds_Northwind.Tables["Employees"].DefaultView.RowFilter = aFilter;
}
aFilter = "Id=" + txtSearch.Text;
aFilter = "estimateno=" + System.Convert.ToInt32(estfindTB.Text);
ds_Northwind.Tables["Employees"].DefaultView.RowFilter = aFilter;
estimatorDataSet.QuoteCalcHeader["estimateno"].DefaultView.RowFilter = aFilter;
Dataset_Name.Tables["Table_Name"].DefaultView.RowFilter = aFilter;