Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.5 DataGrid
hi Every
one i has WPF DataGrid and it has Column Called Code it is a datagridtemplateColumn , i put ComboBox in this Column but i try to fill the comboBox IemsSource and i could not reach to the Combo Box From Code (This.Cmx_Code.ItemsSource is Not Allowed ) so how can i fill the itemsSource of the Combo Box
<datagridtemplatecolumn loc:translate.uid="1658" header="Code" width="*" xmlns:x="#unknown" xmlns:loc="#unknown">
                            <combobox x:name="Cmx_Code" selectionchanged="Cmx_Kind_SelectionChanged" itemssource="{Binding}">
Posted 13-Oct-11 12:14pm
Edited 13-Oct-11 15:37pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

try using DataBinder.Eval() function[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 340
2 Richard MacCutchan 265
3 BillWoodruff 225
4 Mathew Soji 155
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986

Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 5 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100