Home Forums WPF controls Xceed DataGrid for WPF Sharing data between controls

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #23973 |

    I have a datagrid bound to a collectionviewsource.
    I am also binding a textbox to one of the fields in the datagrid to do editing to the data outside the datagridcontrol. This binding works fine, except I can’t edit any of the data using the textbox. When I type something in the textbox, it doesn’t populate back to the object or the datagrid and when I switch rows back and forth I lose the data changes. How do I get the changes to persist?

    <CollectionViewSource x:Key=’src’
    Source=”{Binding Source={StaticResource TicketList}}”>
    <PropertyGroupDescription PropertyName=”SubStatus” />

    <xcdg:DataGridControl x:Name=”TicketGrid”
    ItemsSource=”{Binding Source={StaticResource src}}”
    AutoCreateColumns=”False” ItemScrollingBehavior=”Immediate” NavigationBehavior=”RowOnly” ReadOnly=”False”>

    <TextBox Name=”txtSubject”
    Text=”{Binding ElementName=TicketGrid, Path=CurrentItem.Subject}”

    Imported from legacy forums. Posted by curelom (had 529 views)

    Xceed Support
    Post count: 5658

    Is the output window displaying any error messages?

    At the same time, are you sure the binding’s default Mode is TwoWay?

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2630 views)

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