Does anyone here know of a good example of Binding an XML document, not an XML resultset from SQL, to a DataGrid in ASP.net, in C#?
I have seen some stuff in VB, but not complete examples. The examples I have seen have all been Xml as a result of a SQL query, not dealing with pure XML documents. I want to deal only with XML...
Thanks!
~ Knute
-
-
Hi,
Check out this link :
http://www.xmlforasp.net/codeSection.aspx?csID=35
or:
http://www.csharphelp.com/archives2/archive353.html
HTH.
Natty Gur [ASP.NET MVP] -
Knute,
As far as I know there is no way to just take a string of xml and pass it to a grid without converting it to a dataset or datatable first as Natty provided links to. One of the PowerBuilder guys at work showed me that you can do this in PB - I was envious because it seems like .Net should allow you to do this also.
I do believe Whidbey does this now but unfortuneately its in alpha mode so that doesn't help you. I'll bet it converts it for you behind the scenes.
If some does know of a way to do this without having to convert the xml first I'd like to hear about it.
Regards,
Paul -
Thanks Natty, Paulie!
I actually got the binding part to work, now I need to work on the editing and updating part.
~ Knute
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.