In VB.NET, you can use the Select
method of a DataTable
to retrieve records that match a part of a field. The Select
method allows you to use the Like
keyword in a similar way to SQL. Here is an example
Dim dt As DataTable = GetYourDataTable() ' Replace with your DataTable
Dim rows() As DataRow = dt.Select("YourColumnName Like '%" & yourValue & "%'")