Implementing data updates for Windows programs

Source: Internet
Author: User

Select a node to get the query Condition property and event property name Description Selecednode selected node level node depth from 0 Start event name Description AfterSelect node selected after the TreeView control is represented by nodes, important properties and events The Nodes property SelectedNode property AfterSelect event displays data that matches the criteria of the selected node the first method: (recommended) The second method combines query criteria to filter requery data directly in the existing data * do not have to re-retrieve the data to repopulate the dataset using the Data View DA Taview The Create Data View object is located in the System.Data namespace (* default imported on the form) DataView object name =new DataView (data table); You can also use the parameterless constructor to create a dataviw, but you must set the table property to use the RowFilter property to filter the condition similar to the query statement in the where later section uses the Sort property to sort the condition similar to the later part of the query statement. To reduce the steps of instantiating a DataView object, you can also use the DefaultView property of the DataTable to get DataView the selected student number dgvstudengt.selectedrows[0].calls[" Studengno "].value student table and score table have the primary foreign key relationship first to delete the students and then delete the whole row selected DataGridView entire row selected (SelectionMode property set to Fullrowselect to get the selected number for type conversion) To re-fill the dataset after a successful deletion

Implementing data updates for Windows programs

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.