Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Properties of the GridView Control

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 767
    Comment on it

    Behavior Properties of the GridView Control

    AllowPaging Property sets to true/false. It is used to support the paging in gridview control.
    AllowSorting This property supports sorting in gridview control and it is enabled/disabled via true/false.
    SortExpression This property provides current sort expression (field name) which determines the order of the row.
    SortDirection (Ascending/Descending).Gets the sorting direction of the column sorted currently
    DataSource Gets or sets the data source object that contains the data to populate the control.
    DataSourceID It bounds data source control to use (it is generally used when we are using SqlDataSource or AccessDataSource to bind the data).
    AutoGenerateEditButton true/false. It is used when a separate column should be added to edit the record.
    AutoGenerateDeleteButton true/false. It is used when a separate column should be added to delete the record.
    AutoGenerateSelectButton true/false. This Property is used when a separate column should be added to select a particular record.
    AutoGenerateColumns true/false. this property is very important,It is used when columns are automatically created for each field of the data source. The default is true.

     

     

    Style Properties of the GridView Control

    AlternatingRowStyle This style defines the style properties for every alternate row in the GridView control.
    EditRowStyle It provides the style properties for the row in EditView (When you click Edit button for a row, the row will appear in this style).
    RowStyle RowStyle defines the style properties of the rows of the GridView Control.
    PagerStyle Defines the style properties of Pager of the GridView. (If AllowPaging=true, the page number row appears in this style)
    EmptyDataRowStyle Defines the style properties of the empty row, which appears if there is no records in the data source.
    HeaderStyle Defines the style properties of the header of the GridView. (The column header appears in this style.)
    FooterStyle Defines the style properties of the footer of GridView.

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: