Ejemplo n.º 1
0
        /// <summary>
        /// Handles invocation of RowSetDefaultValues events
        /// </summary>
        internal void DoRowSetDefaultValuesEvent(
            GridPanel panel, GridRow row, NewRowContext context)
        {
            if (RowSetDefaultValues != null)
            {
                GridRowSetDefaultValuesEventArgs ev = new
                    GridRowSetDefaultValuesEventArgs(panel, row, context);

                bool loading = row.Loading;
                row.Loading = true;

                try
                {
                    RowSetDefaultValues(this, ev);
                }
                finally
                {
                    row.Loading = loading;
                }
            }
        }
Ejemplo n.º 2
0
 ///<summary>
 /// GridRowDeletedEventArgs
 ///</summary>
 ///<param name="gridPanel"></param>
 ///<param name="gridRow"></param>
 ///<param name="context"></param>
 public GridRowSetDefaultValuesEventArgs(
     GridPanel gridPanel, GridRow gridRow, NewRowContext context)
     : base(gridPanel)
 {
     _GridRow = gridRow;
     _NewRowContext = context;
 }