473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

design question, using xml-serializable objects with databound controls

KJ
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

Apr 19 '07 #1
1 1109
A lot of that depends on the kind of client you are using. Basically the
modified (edited) row in the DataGridView needs to update the DataRow in the
underlying DataSource. Since this would now have a RowState of Modified, you
can use GetChanges to collect any modified rows and do whatever you need with
them.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"KJ" wrote:
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

Apr 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ken Fine | last post by:
I periodically receive a 5+ MB XML document that I hand-load into SQL Server using SQLXML running under a DTS process. Unfortunately, the document is human-created, and (very unfortunately) often...
8
by: Abhi | last post by:
I am in process of designing a report generation application. Now here is breif background about my workplace ...... my system admin is a big microsoft hater .... so does not allow any microsoft...
1
by: Ayende Rahien | last post by:
I'm storing my data inside an XML file, the data is divided into several niches. I expect two things to happen during normal use of the application: A> Number of niches to grow. B> Amount of...
5
by: Nick Malik | last post by:
reposting to a wider audience "Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message news:WYONc.203854$XM6.119642@attbi_s53... > My turn to ask a question > > I am working on a plug-in...
3
by: Kanchana D S | last post by:
Hi, I am trying to design the schema for an XML file. The approach that I am planning to follow is to have 2 XSD files, each containing some relevant information about the elements in the...
1
by: PCC | last post by:
I am writing a data access layer for a web service. Data from the web service is to be returned as XML. My design dilemma is this... Should I be returning XML from my stored procedures using...
4
by: Nick Malik | last post by:
My turn to ask a question I am working on a plug-in for Sharepoint that will allow a developer to add workflow rules. One of the rules will inform the adapter that it should load a DLL that the...
8
by: Lenn | last post by:
Hello, Just some background: I'm developing an application that basically executes series of tasks. So far I have 2 group of tasks run on different threads (2 different threads). Which run in...
18
by: Nick Z. | last post by:
I am writing a reusable class for logging. My goal is to make it as fast and as robust as possible, while keeping memory usage to the lowest. All members are static. For some reason I'm stuck on...
3
by: Girish Sharma | last post by:
I'm new to using XML. I am currently required to use dtd's rather than schemas. I have some questions about what is considered appropriate design with a dtd. It seems that none of the following are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.