I suspect there is a very simple answer to this question but I am so confused I can't see it.
I have an XML file which contains all of my Job Vacancies data. I have a dataset that is populated with all of this data usign the ReadXML method of the dataset.
I can then use this dataset as a datasource for a datagrid. That all works fine but it puts every field in my sataset as a column in my datagrid.
What I want to do now though is base my datagrid on just some of the fields in the dataset along the lines of
DataGrid1.DataSource = Select Ref, Title, Salary from dataset
Can anyone explain to me how to do this?
I have an XML file which contains all of my Job Vacancies data. I have a dataset that is populated with all of this data usign the ReadXML method of the dataset.
I can then use this dataset as a datasource for a datagrid. That all works fine but it puts every field in my sataset as a column in my datagrid.
What I want to do now though is base my datagrid on just some of the fields in the dataset along the lines of
DataGrid1.DataSource = Select Ref, Title, Salary from dataset
Can anyone explain to me how to do this?