C1DataGrid在后台怎么绑定字段
<c1:C1DataGrid x:Name="dgdAuditJogai" HorizontalAlignment="Left" VerticalAlignment="Top" AutoGenerateColumns="False" Width="292" Height="245" Canvas.Left="1" Canvas.Top="11" Margin="22,20,0,0" BeginningEdit="dgdAuditJogai_BeginningEdit" CommittingEdit="dgdAuditJogai_CommittingEdit" CommittedEdit="dgdAuditJogai_CommittedEdit" LoadedCellPresenter="dgdAuditJogai_LoadedCellPresenter" BeganEdit="dgdAuditJogai_BeganEdit"><c1:C1DataGrid.Columns>
<!--エリア-->
<c1:DataGridTextColumn Header="エリア" MaxLength="3" Width="40" Binding="{Binding AREA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</c1:C1DataGrid.Columns>
</c1:C1DataGrid>
我想在后台动态绑定AREA有什么属性可以设置呢
如果想通过后台设置,依然可以使用Binding属性。
Binding属性属于WPF的属性,该属性的使用方法,请参考微软的msdn。
https://msdn.microsoft.com/zh-cn/library/ms752347.aspx
页:
[1]