Hello,
I am sure this has been answered before but here goes anyway....
I have a Service which provides me with some hierarchical data which I would like to display in a DataGrid.
Fields 1 and 2 (e.g. Code , Name) are followed by a subset of 2 fields (e.g. Language and Translation) the 3rd field Language being a combo box from a predefined set of available languages (lets say 3 in this case)
thus by example
DEU Germany de-DE Deutschland
fr-FR Allemagne
en-US Germany
FRA France de-DE Frankreich
fr-FR France
en-US France
So, to be able to allow the user to update as they need I am using a DataGrid. TO reduce the code behind I wanted to use something like an Observable collection (which also seems to handle hierarchical data). Now here comes the rub - As I am not bound to the Service that provided me with the data I need to send back to the Service 3 messages - New Records, Deleted Records and Modified Records - thus when the User hits the 'Commit' button - in theory I should have 3 collections. In all the examples shown by Microsoft I havn't seen a way of Marking records (in tha way a Dataset would do) to indicate Added, Deleted Modified.
Real Question: Can I use this approach to achieve my goal or can anyone suggest a diferent methodology/approach.
Any help appreciated...
Desmond.