Current filter:
                                You should refresh the page.
                                Support Center

                                How to implement a custom Column Customization window


                                This example demonstrates how to implement a popup control with column names and check boxes next to them. When checking or unchecking check boxes, the corresponding columns in the ASPxGridView are displayed or hidden.

                                See Also:
                                How to manage ASPxGridView column visibility on the client.

                                You must  log in  or  register  to leave comments
                                Select file
                                • Default.aspx
                                • GridViewControlPanel.ascx
                                • GridViewControlPanel.ascx.cs
                                Select language
                                • C#
                                • VB.NET
                                Select version
                                • v2013 vol 1.4 - v2013 vol 2.9
                                • v2009 vol 3.2 - v2012 vol 2.16
                                <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
                                <%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.3, Version=, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
                                    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
                                <%@ Register Src="~/GridViewControlPanel.ascx" TagPrefix="cp" TagName="GridViewControlPanel" %>
                                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
                                <html xmlns="">
                                <head runat="server">
                                    <title>How to implement a custom Column Customization window</title>
                                    <form id="mainForm" runat="server">
                                        <cp:GridViewControlPanel ID="cp1" runat="server" HeaderText="Grid View Control Panel"
                                            LinkText="Show Grid View Control Panel" GridID="ASPxGridViewDemo" />
                                        <br />
                                        <dx:ASPxGridView ID="ASPxGridViewDemo" runat="server" AutoGenerateColumns="False"
                                            DataSourceID="AccessDataSourceDemo" KeyFieldName="EmployeeID">
                                                <dx:GridViewDataTextColumn FieldName="EmployeeID" ReadOnly="True" VisibleIndex="0">
                                                    <EditFormSettings Visible="False" />
                                                <dx:GridViewDataTextColumn FieldName="LastName" VisibleIndex="1">
                                                <dx:GridViewDataTextColumn FieldName="FirstName" VisibleIndex="2">
                                                <dx:GridViewDataTextColumn FieldName="Title" VisibleIndex="3">
                                                <dx:GridViewDataTextColumn FieldName="Country" VisibleIndex="4">
                                                <dx:GridViewDataTextColumn FieldName="HomePhone" VisibleIndex="5">
                                    <asp:AccessDataSource ID="AccessDataSourceDemo" runat="server" DataFile="~/App_Data/nwind.mdb"
                                        SelectCommand="SELECT [EmployeeID], [LastName], [FirstName], [Title], [Country], [HomePhone] FROM [Employees]">

                                To start a chat you should create a support ticket

                                If you need additional product information, write to us at or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners