Filter DataGrid rows as the user types

Suppose you show a large number of rows in a WinForms DataGrid and you want to
limit the rows displayed as the user types a column's value into a textbox. You
can do this by filtering the bound datatable's defaultview.

Bind the DataSet to the DataGrid using the DataGrid's DataSource
property.

'
' Bind the DataGrid to the DataSet. Expand and navigate to first row.
'
If DS.Tables("Customers").Rows.Count > 0 Then
With DataGrid
.DataSource = DS.Tables("Customers")
.Expand(-1)
.NavigateTo(0, "Customers")
End With
End If