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. Image for the cookie policy date

Using GridComboBoxColumn not working

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

1 Reply

BR Balamurugan Rajaraman Syncfusion Team 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 
  
Regards, 
Balamurugan R 


Loader.
Live Chat Icon For mobile
Up arrow icon