We have a xaml file in our application which uses RadGridView. It has a column called "CustomerID". This column's visibility must be set through a property depending upon a condition. I tried to set it like below:
<
RadGrid:GridViewColumn x:Name="CustomerID" UniqueName="CustomerID" IsVisible={Binding Path=IDVisibility}"/>
The property IDVisibility is of Boolean Type. When i tried to run the application it is showing the following error:
"AG_E_PARSER_BAD_PROPERTY_VALUE [Line: 832 Position: 72]"
Then I changed the setting like below:
<Style x:Key="IDVisibilityStyle"
TargetType="RadGridView:GridViewCell">
<Setter Property="IsVisible" Value="{Binding Path=IDVisibility}"></Setter>
</Style>
<RadGrid:GridViewColumn x:Name="CustomerID" UniqueName="CustomerID" IsVisible={StaticResource IDVisibilityStyle}"/>
Now the error is like "Invalid attribute value IsVisible for property Property. [Line: 23 Position: 34]"
Please help me out in this.
Thanks in advance.
VR
