Exemplo n.º 1
0
        private void PurchaseOrderGrid_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            if (e.FocusedRowHandle >= 0)
            {
                if (PurchaseOrderGrid.GetRow(e.FocusedRowHandle) is PurchaseOrders item)
                {
                    txtPO.Text = item.PurchaseNumber;
                    dtPurchaseDate.EditValue = item.PurchaseDate.ToString();
                    cboSupplier.EditValue    = item?.SupplierId;
                    txtAddress.Text          = item.Suppliers?.Address;
                    purchaseId = item.Id;

                    lblPODescription.Text = item.PurchaseNumber + " - " + item.Offices?.OfficeName;
                    cboOffice.EditValue   = item.OfficeId;
                    LoadEquipments();
                    LoadActionActions();
                }
            }
        }
Exemplo n.º 2
0
 private void PurchaseOrderGrid_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
 {
     var res = PurchaseOrderGrid.GetRow(e.ControllerRow);
 }