Wednesday, March 2, 2011

WPF add listview column binding in XAML

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" >
<GridView AllowsColumnReorder="True">

<GridViewColumn DisplayMemberBinding="{Binding Path=VendorId}" Header="Vendor ID" Width="90"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=VendorName}" Header="Vendor Name" Width="90"/>

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...