Example #1
0
 private void GetData()
 {
     inventoryData = f.GetInventoryData();
     dt            = inventoryData.Tables[0];
     DataRow[] t = dt.Select("ProductName like  '" + SearchBox.Text + "%'");
     dataGrid1.ItemsSource = new DataView(dt, "ProductName like  '" + SearchBox.Text + "%'", "ProductID", DataViewRowState.CurrentRows);
 }