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