Hi Brian,
As for your questions on marking a certain columns' header in webform
datagrid when the certain columns is being sorted on, here are my
suggestions:
All the WebForm DataGrid's Column are dervied from the
System.Web.UI.WebControl.DataGridColumn base class. This class has three
properties which can help set the column's header style feature, they are
HeaderImageUrl========== Gets or sets the location of an image to display
in the header section of the column.
HeaderStyle ============Gets the style properties for the header section of
the column.
HeaderText============ Gets or sets the text displayed in the header
section of the column.
Here is the reference in MSDN:
#DataGridColumn Properties
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebUIWebContro
lsDataGridColumnPropertiesTopic.asp?frame=true
And the "HeaderStyle" property is especially good since it contains many
sub members such as BackColor or BorderColor....
Thus, in the DataGrid's SortCommand event, we can retrieve the certain
columns reference from the
DataGrid.Columns collection and set any of the above three properties of
the sorted column. How do you think of this?
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx