B
Billy
I want to use a XML document as the DataSource of a
DataGrid. I am doing this simply by:
DataSet dataset;
string xmlfilelocation = @"C:\source.xml";
dataset.ReadXml(xmlfilelocation);
There are two things I want to achieve:
1) Hide the "id" column of the dataset.
2) Change the physical column name to something more
meaningful to the users.
I've searching arround the internet for answer, somebody
suggest using the DataTableMapping/DataColumnMapping to
solve the problem.
However, the above methods are used with the DataAdapter,
in which it is not the way I get the data from.
As shown before, I just use the ReadXml method from
DataSet to read in the data.
So in my case, what can I do to achieve my two objectives?
DataGrid. I am doing this simply by:
DataSet dataset;
string xmlfilelocation = @"C:\source.xml";
dataset.ReadXml(xmlfilelocation);
There are two things I want to achieve:
1) Hide the "id" column of the dataset.
2) Change the physical column name to something more
meaningful to the users.
I've searching arround the internet for answer, somebody
suggest using the DataTableMapping/DataColumnMapping to
solve the problem.
However, the above methods are used with the DataAdapter,
in which it is not the way I get the data from.
As shown before, I just use the ReadXml method from
DataSet to read in the data.
So in my case, what can I do to achieve my two objectives?