datagrid| controls how to implement visual programming for the DataGrid component.
The following content but I spent three days and three nights, spend a lot of time to get out of the public is really true dedication ah. Welcome you to reprint.
1. New WebApplication project, create a WebForm project.
2. Add a database connection using "Add Connections" under "Data Connections" in "Server Explorer". Drag one of the tables into the workspace, and in the bottom column of the workspace you will see a adoconnection and a Adodatasetcommand components.
3. Select Adodatasetcommand1, then click the DataSet class-->generate dataset in the menu bar, generate DataSet class in the pop-up dialog box Fill in the custom name for this dataset class (first named DDR). Select the check box below, and then press OK.
4. Add a DataView control to set the table property of the DataView to one of the tables below the DDR.
5. Add a DataGrid control and set the DataSource of the DataGrid as the DataView control you added in step 4.
At this point you can see the details of the DataGrid. As with the program running, you can make changes to it, such as the size of the column, and the column in the center of the font or the left-right, the home or the next, the color of the font. Wait a minute. It's so convenient, interested I can provide concrete examples of projects. My mailbox: Cnhai@21cn.com
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.