Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Binding C1DataGridComboBox Column ItemsSource on MVVM

$
0
0

Hello,

You need to use static MVVM Binding in this case.
Please use the following Xaml markup in your MainView.xaml file :

<Grid.Resources>
            <local:ComboItemSource x:Key="cmbList"/>
….
</Grid.Resources>
…..
<c1:DataGridComboBoxColumn Header="Product" Binding="{Binding Product,Mode=TwoWay}"
                            ItemsSource="{Binding Path=ComboItemList,Source={StaticResource cmbList}}">
</c1:DataGridComboBoxColumn>

Refer to the attached sample implementing the same.

Hope this helps.

Regards,
Reema


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>