Exemple #1
0
        private void TopSupergridSelectionChanged(object sender, DevComponents.DotNetBar.SuperGrid.GridEventArgs e)
        {
            List <PropertyGridElement> propertyList = new List <PropertyGridElement>();

            try
            {
                foreach (var row in topSupergrid.SelectedObjects)
                {
                    propertyList.AddRange(new MDHelper().CreatePropertyGridElements((Material)row));
                }
            }
            catch (Exception ex)
            {
                Trace.WriteError(ex.Message, Trace.GetMethodName(), CLASSNAME, ex);
            }

            EnableDisableButtons();
            UpdateTopPropertyGrid(propertyList);
        }
 private void selshiplist_RowsSorted(object sender, GridEventArgs e)
 {
     GridPanel panel = selshiplist.PrimaryGrid;
     object[] vv = new object[19] { "", "清空", "清空", "清空", "", 100, "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "", 0 };
     panel.Rows.Insert(0,new GridRow(vv));
 }
        /// <summary>
        /// Handles invocation of SortChanged events
        /// </summary>
        internal void DoSortChangedEvent(GridPanel gridPanel)
        {
            if (SortChanged != null)
            {
                GridEventArgs ev = new
                    GridEventArgs(gridPanel);

                SortChanged(this, ev);
            }
        }
        /// <summary>
        /// Handles invocation of RowsSortedEvent events
        /// </summary>
        internal void DoRowsSortedEvent(GridPanel panel)
        {
            if (RowsSorted != null)
            {
                GridEventArgs ev = new GridEventArgs(panel);

                RowsSorted(this, ev);
            }
        }
        /// <summary>
        /// Handles invocation of RowHeaderResized events
        /// </summary>
        internal void DoRowHeaderResizedEvent(GridPanel gridPanel)
        {
            if (RowHeaderResized != null)
            {
                GridEventArgs ev = new GridEventArgs(gridPanel);

                RowHeaderResized(this, ev);
            }
        }
        /// <summary>
        /// Handles invocation of ColumnRowHeaderDoubleClick events
        /// </summary>
        internal void DoColumnRowHeaderDoubleClickEvent(GridPanel gridPanel)
        {
            if (ColumnRowHeaderDoubleClick != null)
            {
                GridEventArgs ev = new GridEventArgs(gridPanel);

                ColumnRowHeaderDoubleClick(this, ev);
            }
        }