Home Forums WPF controls Xceed DataGrid for WPF Beginners help

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

    I have been going through the samples in the datagrid documentation but I’m having a hard hard time getting even example 1 to work, would someone be so kind as to attach a working sample project.

    Imported from legacy forums. Posted by terry (had 5194 views)

    Xceed Support
    Member
    Post count: 5658

    All the samples in the documentation should function as well as the samples included in the package. What exactly is not working?

    Imported from legacy forums. Posted by Jenny [Xceed] (had 368 views)

    User (Old forums)
    Member
    Post count: 23064

    I always get the following error
    Error 1 The tag ‘DataGridCollectionViewSource’ does not exist in XML namespace ‘ http://schemas.xceed.com/wpf/xaml/datagrid ‘. Line 8 Position 14.

    where is the code
    <Window x:Class=”WpfApplication2.Window1″
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
    Title=”Window1″ Height=”300″ Width=”300″>
    <Grid xmlns:xcdg=” http://schemas.xceed.com/wpf/xaml/datagrid “>
    <Grid.Resources>

    <xcdg:DataGridCollectionViewSource x:Key=”cvs_orders”
    Source=”{Binding Source={x:Static Application.Current},
    Path=Orders}”/>
    </Grid.Resources>
    <xcdg:DataGridControl x:Name=”OrdersGrid”
    ItemsSource=”{Binding Source={StaticResource cvs_orders}}”/>
    <xcdg:DataGridControl Height=”100″ Margin=”24,21,54,0″ Name=”dataGridControl1″ VerticalAlignment=”Top” />
    </Grid>
    </Window>

    I dont understand what I’m missing

    Imported from legacy forums. Posted by terry (had 960 views)

    User (Old forums)
    Member
    Post count: 23064

    Sounds like you need add the reference to the Xceed.Wpf.Datagrid assembly.

    Imported from legacy forums. Posted by Greg (had 584 views)

    User (Old forums)
    Member
    Post count: 23064

    OK, your right and I did add the reference, but same error

    <Window x:Class=”WpfApplication2.Window1″
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
    Title=”Window1″ Height=”300″ Width=”300″
    <b>xmlns:xcdg=”clr-namespace:Xceed.Wpf.DataGrid;assembly=Xceed.Wpf.DataGrid”></b>
    <Grid xmlns:xcdg=” http://schemas.xceed.com/wpf/xaml/datagrid”&gt; <Grid.Resources>

    <xcdg:DataGridCollectionViewSource x:Key=”cvs_orders”
    Source=”{Binding Source={x:Static Application.Current},
    Path=Orders}”/>
    </Grid.Resources>
    <xcdg:DataGridControl x:Name=”OrdersGrid”
    ItemsSource=”{Binding Source={StaticResource cvs_orders}}”/>
    <xcdg:DataGridControl Height=”100″ Margin=”24,21,54,0″ Name=”dataGridControl1″ VerticalAlignment=”Top” />
    </Grid>
    </Window>

    Imported from legacy forums. Posted by terry (had 430 views)

    Xceed Support
    Member
    Post count: 5658

    Remove the space: Grid xmlns:xcdg=” http://schemas.xceed.com/wpf/xaml/datagrid”&gt;

    Imported from legacy forums. Posted by Jenny [Xceed] (had 309 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks Jenny that worked, but have a look at example #1 under the topic “Providing Data” look at the XAML code, notice that there is a space at the beginning and one at the end.

    <Grid xmlns:xcdg=” http://schemas.xceed.com/wpf/xaml/datagrid “>

    Imported from legacy forums. Posted by terry (had 425 views)

    Xceed Support
    Member
    Post count: 5658

    yes. they have been corrected for the upcoming version.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 6086 views)

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