Home Forums WPF controls Xceed DataGrid for WPF A bug in the Grid???

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24543 |

    <i>
    <StackPanel>

    <TextBox Text={Binding Path=OperationDescription.IsReadOnly}”/>

    <xcdg:DataGridControl ItemsSource=”{Binding Path=OperationDescription.PackagesList}” ….>

    ……

    <xcdg:DataGridControl.Columns>

    <xcdg:Column FieldName=”Address” ReadOnly=”{Binding Path=OperationDescription.IsReadOnly}”/>

    </xcdg:DataGridControl.Columns>

    </xcdg:DataGridControl>

    </StackPanel>
    </i>

    Text box really show the IsReadOnly property value? But when I clicked on the Address cell, I get an exception:
    <b>
    Specified cast is Not valid
    at XCeed.Wpf.DataGrid.Cell.GetInheritedReadOnly()
    </b>

    Imported from legacy forums. Posted by Sergey (had 403 views)

    User (Old forums)
    Member
    Post count: 23064

    What does OperationDescription.IsReadOnly return?

    Imported from legacy forums. Posted by nat (had 244 views)

    User (Old forums)
    Member
    Post count: 23064

    It is a Boolean Type. So, the value can be True, or False. But I fear, that problem is not here. Because when tried to write

    <i>
    <xcdg:Column FieldName=”Address” ReadOnly=”{Binding Path=OperationDescription.IsReadOnly, Converter=”{StaticResource readOnlyToBooleanConverter}””/>
    </i>

    After that was set a breakpoint inside then readOnlyToBooleanConverter code. But I never got there.

    Imported from legacy forums. Posted by Sergey (had 3134 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.