private void TbsearchInvoice_SearchTextChanged(object sender, EventArgs e) { if (tbsearchInvoice.SearchText.Length > 0 && cboCustomer.SelectedIndex != -1) { gridAvailableInvoices.ItemsSource = ClsPEZAData.GetSalesInvoiceSummaryListFromCantierForPEZA8112byCustomerByInvoice(Convert.ToInt16(cboCustomer.SelectedValue.ToString().Trim()) , tbsearchInvoice.SearchText.ToString().Trim()).DefaultView; } }