private void UpdateOrderTable() { dgvShowOrders.DataSource = null; dgvShowOrders.DataSource = OrderDAO.GetOrderTable(user.IdUser); nudOrderID.Maximum = dgvShowOrders.RowCount > 0 ? Convert.ToInt32( dgvShowOrders.Rows[dgvShowOrders.RowCount - 1].Cells[0].Value.ToString()) : 0; }
private void UpdatedgvShowOrders() { dgvShowOrders.DataSource = null; dgvShowOrders.DataSource = OrderDAO.GetOrderTable(); }