System.Web.UI.WebControls Namespace HyperLinkColumn Class
Initializes a new instance of the HyperLinkColumn class.
[ VB ]
Public Sub New ( )
[ C# ]
public HyperLinkColumn ( );
[ C++ ]
public: HyperLinkColumn ( );
[ JScript ]
public function HyperLinkColumn ( );
Use this constructor to initialize a new instance of the HyperLinkColumn class.
The following example demonstrates how to initialize a new instance of the HyperLinkColumn class and add it to the Columns collection.
void Page_Init ( Object src, EventArgs e ) {
HyperLinkColumn newColumn = new HyperLinkColumn ( );
newColumn.HeaderText = "Click for Details";
myGrid.Columns.AddAt ( 0, newColumn );
}
Sub Page_Init ( src As Object, e As EventArgs )
Dim newColumn As New HyperLinkColumn ( )
newColumn.HeaderText = "Click for Details"
myGrid.Columns.AddAt ( 0, newColumn )
End Sub |
|
C# |
VB |
HyperLinkColumn Members Adding HyperLink Columns to a DataGrid Control