WPF ListView with Columns Binding

87

WPF ListView with Columns Binding -

<window x:class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="MainWindow" height="350" width="525">
    <grid>
        <listview margin="10" name="BusinessListView">
            <listview.view>
                <gridview>
                    <gridviewcolumn header="Company" width="120" displaymemberbinding="{Binding Company}"></gridviewcolumn>
                    <gridviewcolumn header="Url" width="200" displaymemberbinding="{Binding Url}"></gridviewcolumn>
                    <gridviewcolumn header="Phone" width="100" displaymemberbinding="{Binding Phone}"></gridviewcolumn>
                </gridview>
            </listview.view>
        </listview>
    </grid>
</window>

Comments

Submit
0 Comments