This example demonstrates how to create a grid column of the type GridViewDataHyperLinkColumn programmatically. Columns are created on the first Page_Init event. Then, the grid automatically recreates columns from the view state on a callback or post back.
You must
log in
or
register
to leave comments
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HyperlinkColumn._Default" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2, Version=8.2.3.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server">
</dxwgv:ASPxGridView>
</div>
</form>
</body>
</html>
Facebook
Twitter
Google+