You can filter the table using Linq
easily, we create a DataView
out of it and set the DataView
as DataSource. You're done.
string searchBy = SearchByField.Text;
TeachersList.DataSource = Dataset.Tables[0].AsEnumerable().Where(x => !string.IsNullOrWhiteSpace(x.Field<string>(searchBy))).AsDataView();
TeachersList.ValueMember = searchBy;
Hope this helps