| |
 |
|
|
.NET DotNet Forum Index » Visual C# Forum » Datagrid fill from XML File
Page 1 of 1
|
| Author |
Message |
| Thejus |
Posted: Thu Jul 01, 2004 7:00 am |
|
|
|
Guest
|
Hi,
When I read from a XML Document and assign -
DataSet.ReadXml(@"C:\Abc.Xml",XmlReadMode.Auto);
DataGrid.DataSource = DataSet;
I get the DataGrid showing the Data table name, but the data is not
displayed in the datagrid. It
shows Table Name as a link, on clicking of which the grid is filled. Even
the DataGrid.Expand(-1) do not expand the rows.
Is there any way for this?
Thanks
Thejus |
|
|
| Back to top |
|
| Uri Dor |
Posted: Thu Jul 01, 2004 7:00 am |
|
|
|
Guest
|
sounds like you're loading an XML which isn't in the format of a dataset
(relational).
try creating a DataTable, adding DataColumns to it, adding it to a
DataSet and serializing it to XML to see what the XML should look like
Thejus wrote:
Quote: Hi,
When I read from a XML Document and assign -
DataSet.ReadXml(@"C:\Abc.Xml",XmlReadMode.Auto);
DataGrid.DataSource = DataSet;
I get the DataGrid showing the Data table name, but the data is not
displayed in the datagrid. It
shows Table Name as a link, on clicking of which the grid is filled. Even
the DataGrid.Expand(-1) do not expand the rows.
Is there any way for this?
Thanks
Thejus
|
|
|
| Back to top |
|
| Tamir Khason |
Posted: Thu Jul 01, 2004 7:11 am |
|
|
|
Guest
|
Please update your clock settings !
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Thejus" <thejus_raghavan@hotmail.com> wrote in message
news:OQwpUr1XEHA.996@TK2MSFTNGP12.phx.gbl...
Quote: Hi,
When I read from a XML Document and assign -
DataSet.ReadXml(@"C:\Abc.Xml",XmlReadMode.Auto);
DataGrid.DataSource = DataSet;
I get the DataGrid showing the Data table name, but the data is not
displayed in the datagrid. It
shows Table Name as a link, on clicking of which the grid is filled. Even
the DataGrid.Expand(-1) do not expand the rows.
Is there any way for this?
Thanks
Thejus
|
|
|
| Back to top |
|
| |
|
Page 1 of 1
All times are GMT - 5 Hours
The time now is Tue Oct 07, 2008 12:43 pm
|
|