private void RefreshData() { this.Cursor = Cursors.WaitCursor; int re = MiscAction.CashierStat(s_begin, s_end); if (re > 0) { bandedGridView1.BeginUpdate(); dt_cf.Rows.Clear(); cfAdapter.Fill(dt_cf); gridColumn5.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum; gridColumn5.SummaryItem.DisplayFormat = "{0:N0}"; bandedGridView1.EndUpdate(); } this.Cursor = Cursors.Arrow; }