示例#1
0
    //custom row commands
    protected void dxgdvOrder_RowCommand(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewRowCommandEventArgs e)
    {
        try
        {
            Int32 _idx = e.VisibleIndex;
            //string[] _fields = {"qry_text","qry_desc"};
            string _command = e.CommandArgs.CommandArgument.ToString();

            string _orderid = this.dxgdvOrder.GetRowValues(_idx, "OrderID").ToString();

            if (!string.IsNullOrEmpty(_orderid))
            {
                switch (_command)
                {
                case "selectpod":     //tick button clicked drop record into pricer or return selected order id to form
                {
                    //performs same action as save button below
                    string _key = _orderid + ";" + this.dxgdvOrder.GetRowValues(_idx, "OrderNumber").ToString();
                    this.dxhfsource.Set("orderidkey", _key);
                    process_request();
                    break;
                }

                default:
                {
                    break;
                }
                } //end switch
            }     //end if
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message.ToString());
        }
    }
示例#2
0
 protected void gvPenyaluran_RowCommand(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewRowCommandEventArgs e)
 {
     if (e.CommandArgs.CommandName == "Detail")
     {
         PanelList.Visible     = false;
         PanelEditList.Visible = true;
     }
 }
示例#3
0
 protected void grid_RowCommand(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewRowCommandEventArgs e)
 {
 }