-
June 7th, 2009, 11:31 PM
#1
How to bind data to a listview in WPF
Hi,
I am working on a WPF application. In this I have a listview as
<ListView Height="271" HorizontalAlignment="Right" Margin="0,52,12,0" Name="lstvHistory" VerticalAlignment="Top" Width="181">
<ListView.View>
<GridView >
<GridViewColumn Header="Type" Width="50" />
<GridViewColumn Header="Description" Width="130"/>
</GridView>
</ListView.View>
</ListView>
In this dynamically I have to add one row at a time and later again one more row like that..
In this I have to add different data to the two columns of a row dynamically. For example for the first column I have to add 'MOVE' and second column 'LEFT' like this.
Please if any one have any idea how to do this please reply me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|