GridView查询结果如excel

        this.gridView1.OptionsCustomization.AllowQuickHideColumns = false;//禁止列隐藏 
        this.efDevGrid1.ShowSelectionColumn = true;               //设置选择是否可见 
        this.efDevGrid1.ShowContextMenu = true;                   //设置右键菜单是否显示
        this.efDevGrid1.ShowContextMenuAddCopyNew = false;
        this.efDevGrid1.ShowContextMenuAddNew = false;
        this.efDevGrid1.ShowContextMenuAddCopyNew = false;       //右键复制新增
        this.efDevGrid1.ShowContextMenuAddNew = false;           //右键新增
        this.efDevGrid1.ContextMenuChooseAllEnable = true;        //右键全选
        this.efDevGrid1.ContextMenuChooseEnable = true;           //右键单选
        this.efDevGrid1.ContextMenuSaveAsEnable = true;           //右键另存为
        this.efDevGrid1.ContextMenuUnChooseAllEnable = true;      //右键全不选
        this.efDevGrid1.ContextMenuUnChooseEnable = true;         //右键不选

        this.efDevGrid1.IsUseCustomPageBar = true;                //设置分页条工具栏是否显示
        this.efDevGrid1.ShowPageButton = true;                    //翻页按钮是否显示
        this.efDevGrid1.NextPageButtonEnable = false;             //初始化时下一页按钮不可用
        this.efDevGrid1.PrePageButtonEnable = false;              //初始化时上一页按钮不可用
        this.efDevGrid1.FirstPageButtonEnable = false;            //初始化时首页按钮不可用
        this.efDevGrid1.LastPageButtonEnable = false;             //初始化时翻尾页按钮不可用
        this.efDevGrid1.ShowAddCopyRowButton = false;              //复制新增按钮
        this.efDevGrid1.ShowAddRowButton = false;                  //新增按钮
        this.efDevGrid1.ShowFilterButton = true;                  //过滤行按钮
        this.efDevGrid1.ShowGroupButton = true;                   //分组按钮


        this.efDevGrid1.EFMultiSelect = true;
        gridView1.OptionsSelection.MultiSelectMode =     DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;

        
        GC.PM_utility2.DEV_Init_LayoutGroup_where_size(layoutControlGroup2, this.efDevGrid2);
posted @   Wangbin0007  阅读(3)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示