asp.net.ph

DataGridColumn.HeaderStyle Property

System.Web.UI.WebControls Namespace   DataGridColumn Class


Sets the style properties for the header section of a DataGridColumn.

Syntax

<asp:datagridcolumn ... 
   headerstyle-styleproperty=value />

Property Value

A TableItemStyle object that defines the style properties for the header section of the column.

Remarks

Use this property to provide a custom style for the header section of a DataGridColumn. Common style attributes that can be set include forecolor, backcolor, font, and content alignment within the cell. Providing a different style enhances the appearance of a column in the DataGrid control.

NOTE: The ShowHeader property must be set to true for this property to have any effect.

See Also

DataGridColumn Members   ShowHeader   FooterStyle   ItemStyle Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note