|
|
|
|
|
Total Hits: 53 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can store XML data in a Microsoft Office Excel workbook or Microsoft Office Word document by creating a custom XML part in a document-level customization. For more information, see Custom XML Parts Overview....
|
|
|
|
Total Hits: 36 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The phrase "filling a dataset with data" refers to loading data into the individual DataTable objects that make up the dataset. You fill the data tables by executing TableAdapter queries or by executing data adapter (for example, SqlDataAdapter) commands....
|
|
|
|
Total Hits: 35 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In order to edit an existing row in a DataTable, you need to locate the DataRow you want to edit, and then assign the updated values to the desired columns....
|
|
|
|
Total Hits: 49 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

If a dataset contains constraints (such as a foreign-key constraint) it is possible to cause exceptions to be thrown depending on the order of operations performed against the dataset. For example, loading child records before loading the related parent records can violate the constraint and cause an exception. As soon as you load a child record the constraint checks for the related parent record and raises an error. If there were no mechanism to allow temporary constraint suspension, an error w...
|
|
|
|
Total Hits: 28 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

As you make changes to records in a dataset by updating, inserting, and deleting records, the dataset maintains original and current versions of the records. In addition, each row's RowState property keeps track of whether the records are in their original state or have been updated, inserted, or deleted. This information is useful when you need to find a particular version of a row. Typically, you would get a subset of all changed records to send to another process. For more information, see Ho...
|
|
|
|
Total Hits: 20 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

After the data in your dataset has been modified and validated, you probably want to send the updated data back to a database. In order to send the modified data to a database, you call the Update method of a TableAdapter or data adapter. The adapter's Update method updates a single data table and executes the correct command (INSERT, UPDATE, or DELETE) based on the RowState of each data row in the table....
|
|
|
|
Total Hits: 60 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To insert new records into a database, you can use the TableAdapter.Update method, or one of the TableAdapter's DBDirect methods (specifically the TableAdapter.Insert method). For more information, see TableAdapter Overview.
If your application does not use TableAdapters, you can use command objects to interact and insert new records in your database (for example, SqlCommand)....
|
|
|
|
Total Hits: 16 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To delete records from a database, use the TableAdapter.Update method or the TableAdapter.Delete method. Or, if your application does not use TableAdapters, you can use command objects to delete records from a database (for example, ExecuteNonQuery). The TableAdapter.Update method is typically used when your application uses datasets to store data, whereas the TableAdapter.Delete method is typically used when your application uses objects to store data....
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In addition to the InsertCommand, UpdateCommand, and DeleteCommand, TableAdapters are created with methods that can be executed directly against the database. These methods (TableAdapter.Insert, TableAdapter.Update, and TableAdapter.Delete) can be called directly to manipulate data in the database....
|
|
|
|
Total Hits: 35 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

When editing values in data-bound controls, users must navigate off the current record to commit the updated value to the underlying data source that the control is bound to. When you drag items from the Data Sources Window onto a form, the first item that you drop generates code into the save button click event of the BindingNavigator. This code calls the EndEdit method of the BindingSource. Therefore, the call to the EndEdit method is generated only for the first BindingSource that is added to...
|
|
|
|
Total Hits: 112 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can add custom data to ink that will be saved when the ink is saved as ink serialized format (ISF). You can save the custom data to the DrawingAttributes, the StrokeCollection, or the Stroke. Being able to save custom data on three objects gives you the ability to decide the best place to save the data. All three classes use similar methods to store and access custom data....
|
|
|
|
Total Hits: 132 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The following example creates an application that enables the user to drag selected strokes from one InkCanvas to the other....
|
|
|
|
|
|