Click here to Skip to main content
15,918,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to bind WPF user control placed in Elementhost with dataset
please help me


//UserControl
XML
<UserControl x:Class="NewDesign1.Datagrid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300">
    <GroupBox>
        <ListView x:Name="Details">
            <ListView.View>
                <GridView>

                </GridView>
            </ListView.View>
        </ListView>
    </GroupBox>
</UserControl>
Posted

1 solution

Here is a couple of nice articles:
WPF DataGrid Practical Examples[^]

MVVM and the WPF DataGrid[^]

If you are using the entity framework you will probably find this interesting:
Binding Objects to Controls[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Jul-11 1:45am    
Good bunch, a 5.
--SA
Espen Harlinn 18-Jul-11 6:19am    
Thank you, Sergey!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900