WPF GridComboBoxColumn Binding

Hello,
i am working on this for days now.
I am trying to include an ComboBoxColumn to my DataGrid.
The Grid is working but i can`t get the ComboxBox Running.
Tried nearly anything. It has to be a simple error but i don`t find it.
I include all 3 Files. CodeBehind, ViewModel and XML.
Thankful for every hint you can give.
Many thanks
Tom

Attachment: AuswertebogenKlassen_9de15787.zip

5 Replies

AR Arulpriya Ramalingam Syncfusion Team May 21, 2020 03:34 AM UTC

Hi Tom, 
 
Thank you for your interest in Syncfusion products. 
 
We have forwarded the query to our development team for further validation and update you with proper details on 21st May 2020. We appreciate your patience till then. 
 
Regards, 
Arulpriya 



AR Arulpriya Ramalingam Syncfusion Team May 22, 2020 12:45 AM UTC

Hi Tom, 
 
Thank you for your patience. 
 
In order to bind an list from a view model, the DataContext for the Grid, window or SfDataGrid should be updated with the class name. We have modified the provided class files as per your requirement and please make use of below code example. 
 
Example code 
 
<Grid x:Name="MainGrid"> 
                   <Grid.DataContext> 
            <local:AuswerteToDoListeViewModell/> 
        </Grid.DataContext> 
//SfGrid customization codes 
 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 



TO Tom Oeben May 22, 2020 08:11 AM UTC

Hi,
WITHOUT your changes the whole Columns are working except the ComboBoxColumn.
WITH your changes the whole Datagrid is NOT working at all.

So still same Problem :(




TO Tom Oeben May 27, 2020 07:39 AM UTC

Any news on this one ?


AR Arulpriya Ramalingam Syncfusion Team May 29, 2020 01:55 AM UTC

Hi Tom, 
 
Sorry for the delay. 
 
We have created a simple sample to load ComboBox column in SfDataGrid. We suspect that the binding for SfDataGrid is not updated properly at your end and suggest that you to ensure the view model is binded to SfGrid properly. Please refer to the below sample and let us know the code part that we are missing. So that, we could analyze further to provide you a better solution at the earliest. 
 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon