some time we fall in confused that how to we will add Column in Listview it's quite Easy:
<ListView Height="91" HorizontalAlignment="Left"
Margin="6,6,0,0" Name="ticketlistView" VerticalAlignment="Top" Width="560" >
<ListView.View>
<GridView AllowsColumnReorder="True">
<GridViewColumn DisplayMemberBinding="{Binding Path=VendorId}" Header="Vendor ID" Width="90"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=VendorName}" Header="Vendor Name" Width="90"/>
</GridView>
</ListView.View>
</ListView>
<ListView Height="91" HorizontalAlignment="Left"
Margin="6,6,0,0" Name="ticketlistView" VerticalAlignment="Top" Width="560" >
<ListView.View>
<GridView AllowsColumnReorder="True">
<GridViewColumn DisplayMemberBinding="{Binding Path=VendorId}" Header="Vendor ID" Width="90"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=VendorName}" Header="Vendor Name" Width="90"/>
</GridView>
</ListView.View>
</ListView>
Comments
Post a Comment