AxpDataGrid

AxpDataGrid.SetGridColHeadAttributes Method 

Set normal html attributes including style and scripting for the specified column header

[Visual Basic]
Public Sub SetGridColHeadAttributes( _
   ByVal Column As Integer, _
   ByVal Value As String _
)
[C#]
public void SetGridColHeadAttributes(
   int Column,
   string Value
);

Parameters

Column
Grid Column number starting at 0 where the first column is the record number column
Value
A string containing Html attributes code.

Remarks

The code will be inserted in the grid column header (TH-tags) for the specified column.


Example. Let grid column header for column 2 have a yellow background:

[C#]
AxpDataGrid1.SetGridColHeadAttributes(2,"style='background-color:yellow;'");
            

See Also

AxpDataGrid Class | Axezz.WebControls Namespace