private void ConfigureSuperGrid() { MembershipSupergrid.ApplyProjectDefaults(); MembershipSupergrid.IdentifyingColumn = OBJECT; MembershipSupergrid.PrimaryGrid.MultiSelect = false; MembershipSupergrid.DisplayNumberOfItems = true; MembershipSupergrid.PrimaryGrid.DefaultRowHeight = 30; MembershipSupergrid.PrimaryGrid.MouseEditMode = MouseEditMode.SingleClick; MembershipSupergrid.PrimaryGrid.ColumnAutoSizeMode = ColumnAutoSizeMode.AllCells; }
private DataTable LoadDataTask() { try { IsRefreshing = true; MembershipSupergrid.SuspendLayout(); return(GetDataTable()); } catch (Exception ex) { Trace.WriteError("()", Trace.GetMethodName(), CLASSNAME, ex); return(null); } }
private void OnContinuationFunction(Task <DataTable> t) { try { _guiThread.Invoke(() => { _loadDataResult = t.Result; MembershipSupergrid.SuspendLayout(); MembershipSupergrid.PrimaryGrid.Footer.Text = " "; MembershipSupergrid.RefreshData(_loadDataResult); MembershipSupergrid.ResumeLayout(false); MembershipSupergrid.PerformLayout(); }); } catch (Exception ex) { Trace.WriteError("()", nameof(OnContinuationFunction), CLASSNAME, ex); } finally { IsRefreshing = false; } }