Beispiel #1
0
    protected void gdvRecebePedido_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        switch (e.CommandName)
        {
        case "status":
            int id = Convert.ToInt32(e.CommandArgument);

            PedidoBD pedBD = new PedidoBD();
            Pedido   ped   = new Pedido();
            ped.Codigo = id;

            ped.Status = 1;
            pedBD.UpdateStatus(ped);
            CarregaGrid();
            break;
        }
    }