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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph