Behavioral properties of GridView control

PropertyTypeDescription
AllowPagingboolThe control will support paging if you set it to true
AllowSortingboolThe control will support sorting if you set it to true
AutoGenerateColumnsboolBy default its value is true i.e. columns will be automatically created for each filed in the data source.
AutoGenerateDeleteButtonboolIf you set it to true the control will include a button column to let users delete the record that is mapped to the clicked row.
AutoGenerateEditButtonboolIf you set it to true the control will include a button column to let users edit the record that is mapped to the clicked row.
AutoGenerateSelectButtonboolIf you set it to true the control will include a button column to let users select the record that is mapped to the clicked row.
DataMemberstringThe property works in in conjunction with DataSource. If DataSource is a DataSet object, it contains the name of the particular table to bind. The property is used to indicate the specific table in a multimember data source to bind to the grid.
DataSourceIDataSource

 

Gets or sets the data source object that contains the values to populate the control.
DataSourceIDstringThe property is used to indicate the bound data source control.
EnableSortingAndPagingCallbacksboolBy default it is false. The property is used to indicate whether sorting and paging are accomplished using script callback functions.
RowHeaderColumnstringName of the column to use as the column header. This property is designed for improving accessibility.
SortDirection
SortDirection

 

 

Gets the direction of the column current sort.
SortExpression
string
Gets the current sort expression.
UseAccessibleHeader
bool
The property is used to specify whether to render <th> tags for the column headers instead of default <td> tags.