Exemplo n.º 1
0
    protected void CallbackTest_Callback(object source, DevExpress.Web.ASPxCallback.CallbackEventArgs e)
    {
        String     index = e.Parameter;
        MFCustomer cus   = (MFCustomer)GridCustomer.GetRow(int.Parse(index));

        Session["CurrentParty"] = cus.Party.PartyID;
    }
    protected void cbSelect_Callback(object source, DevExpress.Web.ASPxCallback.CallbackEventArgs e)
    {
        int        rowIndex = int.Parse(e.Parameter);
        MFCustomer customer = (MFCustomer)GridCustomer.GetRow(rowIndex);

        if (customer != null)
        {
            Session[this.ID + this.GetType().ToString() + "SelectedRow"] = customer.CustomerID;
            txtMFCustomerNo.Text = customer.CustomerNo;
            e.Result             = customer.CustomerNo;
        }
    }