Hello,
I have a RadGridView, it has 7 columns with boolean data. I want to disable each cell with a true value.
I created a style and a converter, I add the style at runtime using the grid DataLoaded event:
In the converter I get a GridViewCell object in the value parameter, but the GridViewCell.Value property is always null.
How can I pass the value of the cell to the converter?
Thanks in advance,
Alberto
                                I have a RadGridView, it has 7 columns with boolean data. I want to disable each cell with a true value.
I created a style and a converter, I add the style at runtime using the grid DataLoaded event:
<Style x:Key="myCellStyle" TargetType="{x:Type telerik:GridViewCell}">            <Setter Property="IsEnabled" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource myConverter}}" />        </Style>public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            GridViewCell cell = (GridViewCell)value;
            if(cell.Value == null)
                return true;
            else
                return (bool)cell.Value;        }private void grid_DataLoaded(object sender, EventArgs e)        {            foreach (Telerik.Windows.Controls.GridViewColumn col in gridCheck.Columns)            {                    col.CellStyle = (Style)this.Resources["myCellStyle"];                            }        }In the converter I get a GridViewCell object in the value parameter, but the GridViewCell.Value property is always null.
How can I pass the value of the cell to the converter?
Thanks in advance,
Alberto
