First to my problem: Id like to filter my DataGrid with a TextBox dynamically for the Name.
DataGrid
TextBox
Name
My current code:
how the
Change your code to this:
private void TextBox_TextChanged(object sender, EventArgs e) { DataView dv = ds.Tables[0].DefaultView; dv.RowFilter = string.Format("Name like '%{0}%'", Filter.Text); hauptübersichtgrid.ItemsSource = dv; }