| Author: DurgaprasadCh 24 Mar 2008 | Member Level: Silver | Rating: Points: 2 |
Hey Sid,
I'm not sure where exactly you are getting issue. Normally to bind XML to datagrid, you can use datasource and fill the data source from xml and bind it to datagrid.
Here is the code snippet that I often use.
DataSet ds = new DataSet(); ds.ReadXml(MapPath("config.xml")); DataGrid1.DataSource = ds; DataGrid1.DataBind();
Please let me know if this solves your problem.
-Durga.
|
| Author: siddharth 24 Mar 2008 | Member Level: Silver | Rating: Points: 2 |
hi Durga,
As suggested by u i made use of ur code and i am getting the following errors:
1.'System.Windows.Forms.DataGridView' does not contain a definition for 'DataBind'
2.The name 'MapPath' does not exist in the current context
|
| Author: siddharth 24 Mar 2008 | Member Level: Silver | Rating: Points: 2 |
hi Durga,
As suggested by u i made use of ur code and i am getting the following errors:
1.'System.Windows.Forms.DataGridView' does not contain a definition for 'DataBind'
2.The name 'MapPath' does not exist in the current context
|
| Author: siddharth 24 Mar 2008 | Member Level: Silver | Rating: Points: 2 |
hi Durga,
As suggested by u i made use of ur code and i am getting the following errors:
1.'System.Windows.Forms.DataGridView' does not contain a definition for 'DataBind'
2.The name 'MapPath' does not exist in the current context
|
| Author: DurgaprasadCh 25 Mar 2008 | Member Level: Silver | Rating: Points: 2 |
which version of frame work you are using? You can use Page.MapPath and regarding DataBind, it's in 2.0 and believe it exists in 1.1 too!
|