protected void pgReportDataConsolidado_ClientLayout(object sender, DevExpress.Web.ASPxClientLayoutArgs e)
 {
     if (e.LayoutMode == DevExpress.Web.ClientLayoutMode.Loading)
     {
         //Guardar Layout
         tool.GuardarLayout(User.Identity.Name, pgReportDataConsolidado.ID, pgReportDataConsolidado.SaveLayoutToString(), false);
     }
 }
    protected void DetailGrid_ClientLayout(object sender, DevExpress.Web.ASPxClientLayoutArgs e)
    {
        ASPxGridView grid = sender as ASPxGridView;
        string       key  = grid.GetMasterRowKeyValue().ToString();

        if (e.LayoutMode == DevExpress.Web.ClientLayoutMode.Loading && Session["DetailGrid" + key] != null)
        {
            e.LayoutData = (string)Session["DetailGrid" + key];
        }
        else
        {
            Session["DetailGrid" + key] = e.LayoutData;
        }
    }