是綁定模式爲雙向的DataGridCheckBoxColumn?
此代碼適用於我。
<data:DataGrid Grid.Row="1" Width="600" MaxHeight="200"
GridLinesVisibility="Horizontal"
AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Auto"
ItemsSource="{Binding Path=ProductPull.Items, Mode=OneWay}">
<data:DataGrid.Columns>
<data:DataGridCheckBoxColumn Header="Select"
Binding="{Binding Path=IsSelected, Mode=TwoWay}" />
編輯
從Silverlight Data Binding這裏是結合模式:
Direction of the Data Flow
--------------------------------------------------------------------------------
Each binding has a Mode property, which determines
how and when the data flows. Silverlight enables three types of bindings:
OneTime bindings update the target with the
source data when the binding is created.
OneWay bindings update the target with the
source data when the binding is created and anytime the data changes.
This is the default mode.
TwoWay bindings update both the target and the
source when either changes. Alternately, you can disable
automatic source updates and update the source only at times of your choosing.
In order for automatic target updates to occur,
the source object must implement the INotifyPropertyChanged interface,
as described in the next section.
的項目中的ItemsSource也可寫'Available'財產? xaml和代碼的簡短示例會有所幫助。 – AnthonyWJones 2010-04-07 10:52:31