Adding Rows to Gridview without using databind
Posted
by powertex
on Stack Overflow
See other posts from Stack Overflow
or by powertex
Published on 2009-10-06T19:30:25Z
Indexed on
2010/06/09
1:02 UTC
Read the original article
Hit count: 346
Hello,
I have a gridview inside of a listview predefined in the xaml:
....
<ListView x:Name="listPriority" IsSynchronizedWithCurrentItem="True" Margin="0,30,0,4" BorderThickness="0,0,0,0">
<ListView.View>
<GridView>
<GridViewColumn x:Name="grvPriorityColumn" Width="140" Header="Priority" />
<GridViewColumn x:Name="grvMessage" Width="250" Header="Message" />
</GridView>
</ListView.View>
....
I have an array containing data that needs to go into the "grvPriorityColumn" and "grvMessage". How do add this data to the gridview without using databinding?
© Stack Overflow or respective owner