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.
Unfortunately, activation email could not send to your email. Please try again.

Using GridComboBoxColumn not working

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,
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 06:58 AM

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 
  
Regards, 
Balamurugan R 


CONFIRMATION

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.

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.

;