BizTalk Utilities Xselerator XSLT IDE


Forum main page

Most active member

Login page
Register
Log out

Search page


View our event calendar
Add general event such as an upcoming software release or conference
View all birthdays

Public image gallery
Upload your images in your profile

Profile editing page
Subscription list page
Address book page

Member list page
View the most active member
User groups listing

Private message page

TopXML Discussion Forum TopXML Discussion Forum

Forums  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

XmlDataDocument attribute updates via DataSet binding

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Ask XML questions here] >> .NET programming discussions >> XmlDataDocument attribute updates via DataSet binding Page: [1]
Login
Message << Older Topic   Newer Topic >>
XmlDataDocument attribute updates via DataSet binding - 17 April 2007   
james.cook2@usma.edu

 

Posts: 2
Score: 0
Joined: 17 April 2007
Status: offline
I am attempting to do something which is exceptionally simple, but also apparently exceptionally undocumented;  I am trying to write a Windows Forms application using an XmlDataDocument to manage a simple xml document, with most of the user interface data-bound to the XmlDataDocument's DataSet.

I have had reasonable success up to this point, considering a complete absence of documentation for any use of XmlDataDocument other than the extraction of data from a preexisting DataSet.  I have now come up against a very frustrating behavior though.

Simply put, I am trying to detect when the value of an XML element's attribute is changed by the user interface (by a DataGridView via an attribute-mapped column, specifically).  I have registered for every XmlDataDocument event, and traced extensively.  What I find is that the only event that is reported is the insertion of a text node into an attribute node that has no parent.  There is never a subsequent event for the insertion of this attribute node into any element node, nor for the removal of any existing attribute node.

Is this an XmlDataDocument bug, or a "feature" that I'm missing?

Or am I approaching things in a fundamentally wrong way?  I could, for example, watch the DataSet for events, but this 'simple' modification, in this case, generates about 200+ DataSet events for a relatively small document (due to a relation for which the attribute I'm watching is the parent key), none of which seems to be a simple representation of the change I want to detect.

Thanks in advance,

James Cook
Post #: 1
RE: XmlDataDocument attribute updates via DataSet binding - 5 June 2007   
HZ

 

Posts: 270
Score: 6
Joined: 10 March 2004
From: Toronto, ON, CANADA
Status: offline
Have you tried using DataGridView’s CellEndEdit to capture the event and manipulate you Document?
 
One event function can handle all rows and all fields

(in reply to james.cook2@usma.edu)
Post #: 2
Page:   [1]
All Forums >> [Ask XML questions here] >> .NET programming discussions >> XmlDataDocument attribute updates via DataSet binding Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



Email TopXML

Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.063