/// <summary> /// Get all invoices with the TotalCharge equal to selection from combo box and fill datagrid /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void InvoiceChargeComBx_SelectionChanged(object sender, EventArgs e) { try { if (comboInvoiceCharge.SelectedItem != null) { int iRet = 0; ds = db.ExecuteSQLStatement(sql.SelectInvoiceByTotalCharge((string)comboInvoiceCharge.SelectedItem), ref iRet); dgInvoices.ItemsSource = new DataView(ds.Tables[0]); FillInvoiceComboBox(); } } catch (Exception ex) { HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name, MethodInfo.GetCurrentMethod().Name, ex.Message); } }