Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6377561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:53:23+00:00 2026-05-25T01:53:23+00:00

I want to get CheckedList DropDown control, which is a basic DropDown with checkbox

  • 0

I want to get CheckedList DropDown control, which is a basic DropDown with checkbox in front of each list item.

I found this demo from their official site but I want the same effect in a ASPxGridView column.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:53:24+00:00Added an answer on May 25, 2026 at 1:53 am

    I didn’t understand your question clearly. Do you want to use CheckComboBoxColumn in ASPxGridview Column ? If so, you can use it like this.

        <dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server"
    .........................
    <Columns>
    .........................
    <EditItemTemplate> // If your Gridview has Edit Property. 
    .........................
    <dx:ASPxListBox ...
    

    If that didn’t what you want, please let me know.

    NOTE: Did you look ASPxGridLookup control ? GridLookup – Multiple Selection

    EDIT1: Check the following code. How to implement a CheckComboBox editor in the ASPxGridView

    .ASPX

    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
    <%@ Register
    Assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
        Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
    <%@ Register
    Assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
        Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>GridCheckComboBox Emulation</title>
        <script type="text/javascript">
            var textSeparator = ",";
    
            function OnGridSelectionChanged(Grid, args, checkComboBox) {
                UpdateText(Grid, checkComboBox);
            }
            var _checkComboBox;
            function UpdateText(checkGrid, checkComboBox) {
                _checkComboBox = checkComboBox;
                checkGrid.GetSelectedFieldValues('CategoryID;CategoryName', OnGetSelectedFieldValues);
            }
            function OnGetSelectedFieldValues(items) {
                var texts = [];
                for (var i = 0; i < items.length; i++)
                    texts.push(items[i][0]);
                texts.join(textSeparator);
                _checkComboBox.SetText(texts);
            }
    
            function SynchronizeGridValues(dropDown, args, checkGrid) {
                var values = dropDown.GetText().split(textSeparator); 
                checkGrid.UnselectAllRowsOnPage();
                checkGrid.SelectRowsByKey(values);
                //UpdateText(checkGrid, dropDown);  // for remove non-existing texts
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <dx:ASPxGridView ID="grid1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1">
                    <Columns>
                        <dx:GridViewDataTextColumn FieldName="CategoryID" ReadOnly="True" VisibleIndex="0">
                            <EditFormSettings Visible="False" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="test" VisibleIndex="1">
                            <DataItemTemplate>
                                <dx:ASPxGridView ID="grid2" runat="server" AutoGenerateColumns="False"
    DataSourceID="AccessDataSource1">
                                    <Columns>
                                        <dx:GridViewDataTextColumn FieldName="CategoryID" ReadOnly="True"
    VisibleIndex="0">
                                            <EditFormSettings Visible="False" />
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="test" VisibleIndex="1">
                                            <DataItemTemplate>
                                                <dx:ASPxDropDownEdit ID="ddE" runat="server" OnInit="ddE_Init">
                                                    <DropDownWindowTemplate>
                                                        <dx:ASPxGridView ID="grid" runat="server"
    AutoGenerateColumns="False" KeyFieldName="CategoryID"
                                                            DataSourceID="AccessDataSource1"
    SettingsBehavior-AllowMultiSelection="True"
                                                            OnInit="grid_Init">
                                                            <Columns>
                                                                <dx:GridViewCommandColumn ShowSelectCheckbox="True"
    VisibleIndex="0">
                                                                </dx:GridViewCommandColumn>
                                                                <dx:GridViewDataTextColumn FieldName="CategoryID"
    VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="CategoryName"
    VisibleIndex="2">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsPager Mode="ShowAllRecords" />
                                                        </dx:ASPxGridView>
                                                        <table style="width: 100%"><tr><td align="right">
                                                            <dx:ASPxButton ID="btn" runat="server" Text="close"
    AutoPostBack="false" OnInit="btn_Init">
                                                            </dx:ASPxButton>
                                                        </td></tr></table>
                                                    </DropDownWindowTemplate>
                                                </dx:ASPxDropDownEdit>
                                            </DataItemTemplate>
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsPager Mode="ShowAllRecords" />
                                </dx:ASPxGridView>
                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsPager Mode="ShowAllRecords" />
                </dx:ASPxGridView>
                <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/nwind.mdb"
                    SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Categories]"></asp:AccessDataSource>
            </div>
        </form>
    </body>
    </html>
    

    .CS

    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using DevExpress.Web.ASPxEditors;
    using DevExpress.Web.ASPxGridView;
    
    public partial class _Default : System.Web.UI.Page 
    {
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }
        protected void ddE_Init(object sender, EventArgs e)
        {
            ASPxDropDownEdit dropdownedit = sender as ASPxDropDownEdit;
            ASPxGridView grid = dropdownedit.NamingContainer.NamingContainer as ASPxGridView;
    
            string key = grid.UniqueID;
            string visibleIndex = (dropdownedit.NamingContainer as GridViewDataItemTemplateContainer).VisibleIndex +
    key;
            dropdownedit.ClientInstanceName = "dde" + visibleIndex;
    
            dropdownedit.ClientSideEvents.DropDown =
                String.Format("function(s,e) {{ SynchronizeGridValues(s, e, grid{0});}}", visibleIndex);
    
            dropdownedit.ClientSideEvents.TextChanged =
                String.Format("function(s,e) {{SynchronizeGridValues(s, e, grid{0});}}", visibleIndex);   
        }
        protected void btn_Init(object sender, EventArgs e)
        {
            ASPxButton button = sender as ASPxButton;
            ASPxGridView grid = button.NamingContainer.NamingContainer.NamingContainer.NamingContainer.NamingContainer
    as ASPxGridView;
    
            string key = grid.UniqueID;
            string visibleIndex = (button.NamingContainer.NamingContainer.NamingContainer.NamingContainer as
    GridViewDataItemTemplateContainer).VisibleIndex + key;
    
            button.ClientSideEvents.Click = String.Format("function(s, e){{dde{0}.HideDropDown();}}", visibleIndex);
        }
        protected void grid_Init(object sender, EventArgs e)
        {
            ASPxGridView curGrid = sender as ASPxGridView;
            ASPxGridView grid = curGrid.NamingContainer.NamingContainer.NamingContainer.NamingContainer.NamingContainer
    as ASPxGridView;
    
            string key = grid.UniqueID;
            string visibleIndex = (curGrid.NamingContainer.NamingContainer.NamingContainer.NamingContainer as
    GridViewDataItemTemplateContainer).VisibleIndex + key;
            curGrid.ClientInstanceName = "grid" + visibleIndex;
    
            curGrid.ClientSideEvents.SelectionChanged =
                String.Format("function(s,e) {{ OnGridSelectionChanged(s, e, dde{0});}}", visibleIndex);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get the header of a selected tab-item of a tab-control and
this is my code : a=[{'x':'aaa','b':'bbbb'},{'x':'a!!!','b':'b!!!'},{'x':'2222','b':'dddd'},{'x':'ddwqd','b':'dwqd'}] and i want get every 'x' list like
I want to get my databases under version control. I'll always want to have
I want to get a list of files in a directory, but I want
i want get the last item of an array with class names. My code
I want get the image from an xml file which is encoded using base64.
I want to get started doing some game development using Microsoft's XNA. Part of
I want to get the MD5 Hash of a string value in SQL Server
I want to get an overview of files that are updated in TFS (that
I want to get the base 10 logarithm of a Fixnum using Ruby, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.