Creating Tabular Data Forms

The goal of the next example is to show how simple it is to create tabular data representations, also taking a look at necessary objects for performing data-binding in code. To accomplish this, first divide the default Grid into two columns as follows:

<Grid>    <Grid.ColumnDefinitions>        <ColumnDefinition Width="200"/>        <ColumnDefinition/>    </Grid.ColumnDefinitions></Grid>

Next, add a ListBox control either by dragging it from the Toolbox or by writing the following code (for better layout purposes, ensure that you place it in the left column):

<ListBox Name="CustomersListBox"       Grid.Column="0"/>

This ListBox stores a list of customers’ names ...

Get Visual Basic 2015 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.