Exemplo n.º 1
0
 protected override bool OnBubbleEvent(object source, EventArgs e)
 {
     if (e is CommandEventArgs)
     {
         MxDataGridCommandEventArgs args = new MxDataGridCommandEventArgs(this, source, (CommandEventArgs) e);
         base.RaiseBubbleEvent(this, args);
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 public MxDataGridUpdateEventArgs(MxDataGridCommandEventArgs commandEventArgs, bool cancel)
     : base(cancel)
 {
     this.item = commandEventArgs.Item;
     this.commandSource = commandEventArgs.CommandSource;
 }
Exemplo n.º 3
0
 protected virtual void OnItemCommand(MxDataGridCommandEventArgs e)
 {
     MxDataGridCommandEventHandler handler = (MxDataGridCommandEventHandler) base.Events[EventItemCommand];
     if (handler != null)
     {
         handler(this, e);
     }
 }
Exemplo n.º 4
0
 protected virtual void OnEditCommand(MxDataGridCommandEventArgs e)
 {
     if (!(this.DataSource is DataControl) || ((DataControl) this.DataSource).CanUpdate)
     {
         MxDataGridCommandEventHandler handler = (MxDataGridCommandEventHandler) base.Events[EventEditCommand];
         if (handler != null)
         {
             handler(this, e);
         }
         this.EditItemIndex = e.Item.ItemIndex;
         if (this.AutoDataBind)
         {
             this.DataBind();
         }
     }
 }
Exemplo n.º 5
0
 protected virtual void OnCancelCommand(MxDataGridCommandEventArgs e)
 {
     MxDataGridCommandEventHandler handler = (MxDataGridCommandEventHandler) base.Events[EventCancelCommand];
     if (handler != null)
     {
         handler(this, e);
     }
     this.EditItemIndex = -1;
     if (this.AutoDataBind)
     {
         this.DataBind();
     }
 }
 public MxDataGridSortCommandEventArgs(object commandSource, MxDataGridCommandEventArgs dce)
 {
     this.commandSource = commandSource;
     this.sortExpression = (string) dce.CommandArgument;
 }