Question Baffled by DataGrid

groobie

New member
Joined
Dec 2, 2011
Messages
2
Programming Experience
10+
I am trying to populate a DataGrid (using Visual Basic Express 2010) but am getting this baffling error:

DataGrid error.png

The associated XAML is:

<DataGrid AutoGenerateColumns="True" Grid.Row="1" HorizontalAlignment="Stretch" Name="DataGrid1" VerticalAlignment="Stretch" />

Every example I have read, including the book "Pro WPF in VB 2010", states that the DataSource property has to be used.

Anyone have any ideas?
 
Last edited:
Back
Top