views:

42

answers:

1

Hi,

Having a problem with the dataGridView control being populated with Display members:

Code:

private string settingsFile = @"Data\IntelliSched.xml";
private void loadDataFromXML()
    {
        dataSetXML.ReadXml(settingsFile);
    }

DataSet contents:

Table -> zone
id
name
----


Table -> postcode
name
code
zone
active
----

Pics:

alt text

The data is loaded, but it doesn't display the value/displaymember

For info here is the dataset config: alt text alt text alt text

Am I missing something??

A: 

I found the answer...

The Columns ColumnMapping type was set to Element. It needed to be Attribute...

Works now :)

JD