Beispiel der Anwendung CellTemplate/CellEditTemplate
in DataGrid (w/ComboBox).
xmlns= " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns: x= " http://schemas.microsoft.com/winfx/2006/xaml "
xmlns: data= " Clrnamespace: System.Windows.Controls; assembly=System.Windows.Controls.Data "
xmlns: src= " Clrnamespace: Silverlight "
Width= " 400 " Height= " 300 " >
n Header= " Stadt " >
n.CellTemplate>
mn.CellTemplate>
n.CellEditingTemplate>
ItemsSource= " {bindenes CityList, Source= {StaticResource cityProvider}} „
DisplayMemberPath= " CityName "
/>
mn.CellEditingTemplate>
mn>
Über war von
http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspxHTH
Ashok