Home Forums WPF controls Xceed DataGrid for WPF how to bind wpf xceed grid in win forms.

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

    i have a win form, i am adding one WPF user control in my projecj, in which i have created the grid. how can i bind the data to the grid for showing on that form.

    Imported from legacy forums. Posted by pranav (had 481 views)

    Xceed Support
    Member
    Post count: 5658

    For information on how to bind the grid, please refer to the <b>Providing Data</b> topic in the documentation.

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

    User (Old forums)
    Member
    Post count: 23064

    but in the documentation.. they have not given how to bind the grid to the form.. i have created a wpf usercontrol and that i am adding to the win forms. so i need to know what to write in the xaml file for binding the data source.
    —————————
    <UserControl x:Class=”appl1.UserControl1″
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
    xmlns:xcdg=”http://schemas.xceed.com/wpf/xaml/datagrid”&gt;

    <Grid Name =”datagrid1″>
    <xcdg:DataGridControl x:Name=”ordersGrid”
    ItemsSource=”{Binding Source={x:Name=datagrid1},Path=ComReport}”

    View=”CardView.Aero.NormalColor”>

    </xcdg:DataGridControl>
    </Grid>
    </UserControl>
    —————————
    above the code i have written in xaml file.. with this code i am getting the grid on the form but data is not filled inside the grid

    Imported from legacy forums. Posted by pranav (had 3244 views)

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