private void BtnUltimos_Click(object sender, EventArgs e) { if (CboMinuto.SelectedIndex != -1 & CboTipoVenta.SelectedIndex != -1) { DataTable DtUltimosDespachos = new DataTable(); DtUltimosDespachos = ObjCL_Venta.GetDespachos(AppSettings.SedeID, Convert.ToInt16(CboTipoVenta.SelectedValue), Convert.ToInt16(CboMinuto.SelectedValue)); TdgDespachos.SetDataBinding(DtUltimosDespachos, "", true); } }