AxpDataGrid

AxpDataGrid.SetGridColAttributes Method 

Set normal html attributes including style and scripting for specified column number.

[Visual Basic]
Public Sub SetGridColAttributes( _
   ByVal Column As Integer, _
   ByVal Value As String _
)
[C#]
public void SetGridColAttributes(
   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 all grid/table cells (TD-tags) for the specified column


Example
Let column number 0 (the record number column) have a Windows 3D silver look. Works well with the stylesheet AxpStyleWindowsGrid.css

[C#]
AxpDataGrid1.SetGridColAttributes(0, "style=\"text-align:right;padding-right:4px;background-color:#d4d0c8;border-top:#ffffff 1px solid;border-left: #ffffff 1px solid;\"");
            

See Also

AxpDataGrid Class | Axezz.WebControls Namespace