|
-
Nov 10th, 2008, 07:11 PM
#7
Thread Starter
Fanatic Member
Re: Retrieving and Saving Data in Databases
 Originally Posted by jmcilhinney
What SetAdded does is set the RowState of a DataRow to Added, which it needs to be if that row is to be acted upon by the InsertCommand of a DataAdapter. Does your DataAdapter have an InsertCommand? How did you create it, explicitly or with a CommandBuilder?
i didnt use DataAdapter to insert command but just to update the dataset
i have only an xml file which has data
so i want this data to be copied to dataset
so after i can query
i have a DatagridView filled by the xml file using readxml & i have a textbox which i can put the query what i want
so when i start the query there is an exception ...
yes because dataset is empty
when i asked you , you told me to use setAdded to save data
that what i have done but nothing
hope you understand what i mean
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|