design question, using xml-serializable objects with databound controls

design question, using xml-serializable objects with databound controls

Post by KJ » Sat, 21 Apr 2007 00:06:02


Hello Folks,

I am working with a third party web service whose inputs and outputs
are always passed as XmlNode objects.

To work with this system, I am using two MS tools:

1) xsd.exe: to generate strongly-typed datasets from the Xml messages
for easy databinding (using DataSet.ReadXml(), for example)

2) xsdobjectgen.exe: for serialization/deserialization of xml from
strings to classes and back

When displaying data, I can bind to controls such as GridView using
the strongly-typed datasets.

My question is, when a user modifies a single DataGridViewRow in the
GridView, how would I get just that one modified DataGridViewRow and
turn it back into an object using xml deserialization, so I can then
send it back to the web service to be updated?

-KJ
 
 
 

1. Object implements Serializable, but includes field(s) that do NOT implement Serializable

2. How can i see if an object is Xml Serializable at runtime?

I am looking for a way to determine in RunTime if a given object is Xml
Serializable (short of trying to serialize it to xml and catching the
exception).

Is this possible?

Since an object must have a Default Constructor to be XmlSerializable I have
tried something like:

Type valueType = aRandomObject.GetType();
bool isXmlSerializable = valueType.IsClass && !valueType.IsValueType
? valueType.GetConstructor(new Type[]{}) != null : true;

but this is not correct. Am I on the right track or missing something
obvious...?

Any ideas?

Thanks in advance
Tim

3. OO design question for XML parser object, how to extend it properly?

4. Mapping directly to an XML-Serializable .NET Type?

5. Sending object over network WITHOUT using serializable interface

6. A question for all those who struggle with automatically databound controls

7. performance using databound controls...

8. Databound Form and UI controls - Question for experts

9. question about a dynamic ado databound control

10. Using in "Eval" in databound controls

11. What XML newsgroup is best for XML web design questions?

12. Newbie Question: Using MatLAB for complete UAV control systems design?

13. Design question about using ActiveX controls

14. user control to custom databound control

15. Databound AjaxControlToolKit Accordion Control: How to access Controls