我使用的是WPF应用程序,在该应用程序中,我使用的是telerik网格,我还使用MVVM模型来绑定网格中的数据。我希望根据绑定到网格的集合中的值禁用行或使行变灰。这是个布尔值。
是否有类似于在下面的代码中为列设置属性IsReadOnlyBinding的内容。
<telerik:GridViewDataColumn Width="40" IsFilterable="False" HeaderTextAlignment="Center" Header="Max" DataMemberBinding="{Binding Constraint.MaxCountConstraint, Mode=TwoWay}" IsReadOnlyBinding="{Binding MyBoolValue}" Tag="Exclude" />我怎么才能做同样的事呢?
网格代码是,
<telerik:RadGridView x:Name="grdSetup" MinHeight="100" telerik:StyleManager.Theme="Windows8" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding MCCollection, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="False" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" >发布于 2015-03-03 10:53:47
当您设置IsReadOnlyBinding属性RadGridView时--当基础属性为True时,整行才会被读取。
<telerik:RadGridView x:Name="radGridView" IsReadOnlyBinding="{Binding IsActive}" />https://stackoverflow.com/questions/28829870
复制相似问题