This project has moved. For the latest updates, please go here.

DataGrid Binding Source in Page

Apr 6, 2016 at 5:31 PM
Edited Apr 6, 2016 at 5:57 PM
Hello,

I try to develop a page based application in WPF. I have a MainWindow, in it, I have a Frame, and I navigate pages in this frame. In some pages, I want to use DataGrid but I cannot show the data on grid. I try the sample in empty project, it works, but I cannot in page.

I think problem is in xaml, in this part:
        <Grid.Resources>
            <xcdg:DataGridCollectionViewSource x:Key="dt_lines" Source="{Binding Source={x:Static Application.Current}, Path=linesDt}"/>
        </Grid.Resources>
        <xcdg:DataGridControl x:Name="grid" ItemsSource="{Binding Source={StaticResource dt_lines}}"/>

Is there anyone can help me? Thanks.
Apr 6, 2016 at 6:17 PM
Problem is solved. Thanks.