OrderGrid
The table showing orders (Order).
Inherits: BaseGridControl
Implements: IComponentConnector
Constructors
Properties
public bool IsInteractive { get; set; }
value = orderGrid.IsInteractive
orderGrid.IsInteractive = value
Interactive mode.
public int MaxCount { get; set; }
value = orderGrid.MaxCount
orderGrid.MaxCount = value
The maximum number of orders to display. The -1 value means unlimited amount. The default is 100000.
public IListEx<Order> Orders { get; }
value = orderGrid.Orders
The list of orders that have been added to the table. High-performance mode: feed this directly.
public Order SelectedOrder { get; }
value = orderGrid.SelectedOrder
The selected order.
public IEnumerable<Order> SelectedOrders { get; }
value = orderGrid.SelectedOrders
Selected orders.
public IEnumerable<Order> Source { get; set; }
value = orderGrid.Source
orderGrid.Source = value
External collection to display (MVVM mode); mirrored into the grid's internal thread-safe buffer so a plain view-model collection can be bound without losing the UI-thread marshalling. The high-performance alternative is to feed Orders directly; do not use both at once.
Methods
public void AddRegistrationFail(OrderFail fail)
orderGrid.AddRegistrationFail(fail)
To add a description of the registration error to the table.
- fail
- Error.
public void InitializeComponent()
orderGrid.InitializeComponent()
InitializeComponent
protected virtual void OnOrderAdded(Order order)
orderGrid.OnOrderAdded(order)
The method is called when a new order added.
- order
- Order.
protected override void RaiseSelectionChanged(GridSelectionChangedEventArgs e)
orderGrid.RaiseSelectionChanged(e)
Raise SelectedOrderChanged event.
- e
Events
public event Action<Order> OrderCanceling
orderGrid.OrderCanceling += handler
The selected order cancel event.
public event Action OrderRegistering
orderGrid.OrderRegistering += handler
The order registration event.
public event Action<Order> OrderReRegistering
orderGrid.OrderReRegistering += handler
The order re-registration event.
public event Action<IEnumerable<Order>> OrdersCanceling
orderGrid.OrdersCanceling += handler
The selected orders cancel event.
public event Action SelectedOrderChanged
orderGrid.SelectedOrderChanged += handler
Selected order changed.
Fields
public static readonly RoutedCommand CancelOrderCommand
value = OrderGrid.CancelOrderCommand
The command for the cancel of selected orders.
public static readonly RoutedCommand CopyErrorCommand
value = OrderGrid.CopyErrorCommand
The command for the copying of the error text.
public static readonly RoutedCommand RegisterOrderCommand
value = OrderGrid.RegisterOrderCommand
The command for the order registration.
public static readonly RoutedCommand ReRegisterOrderCommand
value = OrderGrid.ReRegisterOrderCommand
The command for the order re-registration.
public static readonly DependencyProperty SourceProperty
value = OrderGrid.SourceProperty
Source dependency property.