Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML To Grid Pin
Not Active1-Apr-11 7:34
mentorNot Active1-Apr-11 7:34 
GeneralRe: XML To Grid Pin
Kevin Marois1-Apr-11 7:35
professionalKevin Marois1-Apr-11 7:35 
GeneralRe: XML To Grid Pin
Not Active1-Apr-11 7:53
mentorNot Active1-Apr-11 7:53 
GeneralRe: XML To Grid Pin
Kevin Marois1-Apr-11 8:10
professionalKevin Marois1-Apr-11 8:10 
GeneralRe: XML To Grid Pin
Not Active1-Apr-11 8:14
mentorNot Active1-Apr-11 8:14 
GeneralRe: XML To Grid Pin
SledgeHammer011-Apr-11 8:16
SledgeHammer011-Apr-11 8:16 
GeneralRe: XML To Grid Pin
Kevin Marois1-Apr-11 8:17
professionalKevin Marois1-Apr-11 8:17 
GeneralRe: XML To Grid Pin
SledgeHammer011-Apr-11 8:27
SledgeHammer011-Apr-11 8:27 
I was typing out a response when you answered, so I'll just throw that out and respond to this since you answered most of my questions.

You could use xsd to generate a schema and then use xsd again to generate wrapper class(es) from the schema, but the end result here will be that you'll end up with a typed DataTable, etc. which wouldn't really be 2-way bindable directly. You'd also end up with a ~50k to ~100k C# wrapper class. EDIT: Not sure about part of my answer here, maybe DataGrid has a method to bind to a DataTable? EDIT #2: Even if DataGrid does have a method to bind to a DataTable, getting the XML out of a DataTable in the precise way you want it is often a practice in futility.

So, your best bet would be to use the C# XML parser to parse the file yourself into an ObservableCollection<> or whatever and then write it back out to the DB after you are done editing.
GeneralRe: XML To Grid Pin
Kevin Marois1-Apr-11 8:30
professionalKevin Marois1-Apr-11 8:30 
Question[WPF] Conditional Formatting of Bound data in ListView Pin
Dirk.Bock1-Apr-11 3:51
Dirk.Bock1-Apr-11 3:51 
AnswerRe: [WPF] Conditional Formatting of Bound data in ListView Pin
Tarun.K.S1-Apr-11 4:06
Tarun.K.S1-Apr-11 4:06 
GeneralRe: [WPF] Conditional Formatting of Bound data in ListView Pin
Dirk.Bock1-Apr-11 4:12
Dirk.Bock1-Apr-11 4:12 
QuestionHow can I open Excel Workbook in My WPF Form Pin
amitkarnik221131-Mar-11 23:44
amitkarnik221131-Mar-11 23:44 
AnswerRe: How can I open Excel Workbook in My WPF Form Pin
Wayne Gaylard1-Apr-11 2:34
professionalWayne Gaylard1-Apr-11 2:34 
Questionexe giving exception while running on xp Pin
situ2131-Mar-11 21:48
situ2131-Mar-11 21:48 
AnswerRe: exe giving exception while running on xp Pin
OriginalGriff31-Mar-11 22:27
mveOriginalGriff31-Mar-11 22:27 
GeneralRe: exe giving exception while running on xp Pin
situ2131-Mar-11 22:39
situ2131-Mar-11 22:39 
AnswerRe: exe giving exception while running on xp Pin
Eddy Vluggen31-Mar-11 23:20
professionalEddy Vluggen31-Mar-11 23:20 
GeneralRe: exe giving exception while running on xp Pin
situ2131-Mar-11 23:21
situ2131-Mar-11 23:21 
AnswerRe: exe giving exception while running on xp Pin
Eddy Vluggen31-Mar-11 23:27
professionalEddy Vluggen31-Mar-11 23:27 
GeneralRe: exe giving exception while running on xp [modified] Pin
situ2131-Mar-11 23:34
situ2131-Mar-11 23:34 
GeneralRe: exe giving exception while running on xp Pin
Eddy Vluggen1-Apr-11 0:04
professionalEddy Vluggen1-Apr-11 0:04 
AnswerChange your Username!!!! Pin
Keith Barrow1-Apr-11 6:44
professionalKeith Barrow1-Apr-11 6:44 
AnswerRe: exe giving exception while running on xp Pin
RaviRanjanKr6-Apr-11 19:15
professionalRaviRanjanKr6-Apr-11 19:15 
AnswerRe: exe giving exception while running on xp Pin
Ganesh Kumar Kaki13-Apr-11 2:09
Ganesh Kumar Kaki13-Apr-11 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.