Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: DataGrid Binding Source in Page

$
0
0
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, int his part:


<Grid Grid.Column="1" Grid.Row="1">
<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}}"/>
</Grid>

Is there anyone can help me? Thanks.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>