0
我怎麼會去將項目添加到數據網格與下面的代碼如何添加行綁定多列數據網格(Silverlight的4.0)
<sdk:DataGrid AutoGenerateColumns="False" Height="294" HorizontalAlignment="Left" Margin="63,27,0,0" Name="Assignments_datagrid" VerticalAlignment="Top" Width="533" IsReadOnly="True" SelectionChanged="Assignments_datagrid_SelectionChanged">
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn Header="Assignment Name" Binding="{Binding Assignment_Name}"/>
<sdk:DataGridTextColumn Header="Type" Binding="{Binding Type}"/>
<sdk:DataGridTextColumn Header="Due Date" Binding="{Binding Assignment_Due_Date}"/>
<sdk:DataGridTextColumn Header="Class Name" Binding="{Binding Course_Name}"/>
</sdk:DataGrid.Columns>
</sdk:DataGrid>