GridView.SortedAscendingCellStyle 属性

定义

获取或设置按升序对列排序时 GridView 列的 CSS 样式。Gets or sets the CSS style for a GridView column when the column is sorted in ascending order.

public:
 property System::Web::UI::WebControls::TableItemStyle ^ SortedAscendingCellStyle { System::Web::UI::WebControls::TableItemStyle ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.TableItemStyle SortedAscendingCellStyle { get; }
member this.SortedAscendingCellStyle : System.Web.UI.WebControls.TableItemStyle
Public ReadOnly Property SortedAscendingCellStyle As TableItemStyle

属性值

如果按升序对列进行排序时向 true 控件应用了样式,则为 GridView;否则为 falsetrue if a style is applied to the GridView control when the column is sorted in ascending order; otherwise, false.

属性

注解

如果将此属性设置为 "true",则在按升序对数据进行排序时,将样式应用于列中的单元格。When this property is set to true, a style is applied to cells in the column when the data is sorted in ascending order. 例如,当排序类型为升序时,可以使用特定的颜色突出显示该列。For example, the column can be highlighted with a specific color when the sort type is ascending.

适用于