Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

DataGrid -- binding to ItemsSource is broken RSS

1 reply

Last post Mar 30, 2009 09:38 PM by yifung

(0)
  • akuznetsov

    akuznetsov

    Member

    6 Points

    4 Posts

    DataGrid -- binding to ItemsSource is broken

    Mar 30, 2009 07:47 PM | LINK

    link to repro

    Repro solution for bug in binding collection to ItemsSource of DataGrid (click button several times).

    At the same time ItemsSource of ListBox bounded to same collection behaves normally.

  • yifung

    yifung

    Contributor

    3937 Points

    637 Posts

    Microsoft

    Re: DataGrid -- binding to ItemsSource is broken

    Mar 30, 2009 09:38 PM | LINK

    Hi,

    Indeed this is a known regression in the Beta that will be fixed for RTW.  In the meantime, there is a workaround of using a TwoWay Binding instead of a OneWay Binding:

    <data:DataGrid ItemsSource="{Binding Inner,Mode=TwoWay}"></data:DataGrid>

     
    Yifung Lin [MSFT]