We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using GridComboBoxColumn not working

Thread ID:





129252 Mar 7,2017 11:50 AM UTC Mar 10,2017 11:58 AM UTC WPF 1
Tags: SfDataGrid
Amit Saraf
Asked On March 7, 2017 11:50 AM UTC

I'm trying to use GridComboBoxColumn. Here is my code

<sync:SfDataGrid x:Name="LV"/>

            LV.AllowSorting = true; LV.AllowResizingColumns = true;
            LV.AutoGenerateColumns = false; LV.AllowEditing = false; LV.AllowDeleting = false;
            LV.NavigationMode = Syncfusion.UI.Xaml.Grid.NavigationMode.Cell;
            LV.SelectionMode = Syncfusion.UI.Xaml.Grid.GridSelectionMode.Single;
            LV.SelectionUnit = Syncfusion.UI.Xaml.Grid.GridSelectionUnit.Cell;

            LV.Columns.Add(new sync.Grid.GridTextColumn { MappingName = "Type", HeaderText = "Ledger Type", Width = 200 });
            LV.Columns.Add(new sync.Grid.GridComboBoxColumn
                MappingName = "TGLCode",
                HeaderText = "Ledger Name",
                ItemsSource = DTGL.DefaultView,
                DisplayMemberPath = "GLDisplay",
                SelectedValuePath = "GLCode",
                IsEditable = false,
                Width = 200,
                AllowEditing = true

            LV.ItemsSource = DT;

Here DataTable DTGL Contains 2 Columns GLCode (int) & GLDisplay (String) & DT contains 3 Columns Id (int), Type (String), TGLCode (int)

My list is populated and Type Column is shown properly but Ledger Name Columns (Combobox) is shown empty but when I double click on cell it shows selected value as well as list

can you point out my mistake.

Thanks in advance 
Amit Saraf

Balamurugan Rajaraman [Syncfusion]
Replied On March 10, 2017 11:58 AM UTC

Hi Amit, 
We have analyzed your query and we have created a support incident to track the status of this forum has been created under your account. Please log on to our support website to check for further updates 
Balamurugan R 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon