Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > update dataview to dataset
 

update dataview to dataset

mysaviors

i use xml as datasource

edit and delete and select when get the table in dataset.

but i need to implement a filter,after which i need to edit and update filtered records.

i use dataview to filter,fetch and display results,but the update couldnot be written back into xml source.

can i find the selected row in original dataset, delete it and insert a new one that proposed(being edited) in filtered mode? or there s any esay way. i m a newbie!

my goal is:

be able to edit and update any rows in normal situation, and

able to edit and update any rows after filtering.

the filter feature prefer to be the same as excel auto-filter(which gives 0~more rows).

hkust_jack  Wednesday, June 27, 2007 10:20 AM

problem sloved

actually, the defaultview was sync with the dataset itself

any update or editing happen on the dataset

so you just need to calldataset.writexml ,which write the dataset into database.

hkust_jack  Thursday, June 28, 2007 4:21 AM

problem sloved

actually, the defaultview was sync with the dataset itself

any update or editing happen on the dataset

so you just need to calldataset.writexml ,which write the dataset into database.

hkust_jack  Thursday, June 28, 2007 4:21 AM

You can use google to search for other answers

Custom Search

More Threads

• Grab current record when not using databinding
• How to do simultaneous insert into another table on insert in datagridview bound table
• Databinding: Adding and Reading from Access DB Query
• Openning and Closing connection to sql server.
• DataGridView Multi-threading Issues
• Binding to RichTextBox
• Insert Row into DataBound DataGridView
• Data Grid View Row Visible?
• Bound DataGridView requires tabbing out of a cell
• displaying a related field