Esempio di utilizzare 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: clr-namespace del data= ": System.Windows.Controls; assembly=System.Windows.Controls.Data "
xmlns: clr-namespace dello src= ": Silverlight "
Width= " 400 " Height= " 300 " >
n Header= " città " >
n.CellTemplate>
mn.CellTemplate>
n.CellEditingTemplate>
ItemsSource= " {CityList, Source= leganti {cityProvider di StaticResource}} “
DisplayMemberPath= " CityName "
/>
mn.CellEditingTemplate>
mn>
Sopra proveniva da
http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspxHTH
Ashok