Aspxgridview server-Side important properties
| Property name |
Data type |
Chinese description |
| DataSource |
Object |
The data source. Supported data source types include: SqlDataSource, ObjectDataSource, XmlDataSource, AccessDataSource, SiteMapDataSource |
| DataSourceID |
String |
The data source ID. |
Aspxgridview server-Side Important method
| Method name |
Parameters |
Chinese description |
| Void Addnewrow () |
No |
New row |
| Void autofilterbycolumn (gridviewcolumn collmn,string value) |
Column: Fields to filter Value: The field value to filter (wildcard characters can be used) |
Filter by specified field |
| Void CancelEdit () |
No |
Cancels the edit mode. The end user can also cancel the edit mode by tapping the Cancel button. |
| Void Clearsort () |
No |
Clears the collation. If there is a grouping, the group will be beaten. |
| Void deleterow (int visibleindex) |
Visibleindex: Line number |
Deletes the specified line. |
| Void dorowvalidation () |
No |
Row data validation. |
| String Saveclientlayout () |
No |
Save the layout. |
| Void loadclientlayout (String layoutdata) |
Layoutdata: Layout data |
Restores the layout. |
Gridviewcolumncollection server-Side important properties
| Property name |
Data type |
Chinese description |
| Count |
Int |
Number of fields |
| Grid |
Aspxgridview |
Correspondence Aspxgridview |
| Item |
Gridviewcolumn |
GridView Field |
| Owner |
DevExpress.Web.ASPxClasses.IWebControlObject |
Parent container |
Source:. NET Learning Network
Description: All sources are . NET Learning Network articles are original, if reproduced, please mark this page address in the reprint, thank you!
19.AspxGridView server-side important properties and methods