DX控件中ASPxGridView中某一列带超链接,然后根据数据源中的地址超链接如何实现?
--------------------编程问答-------------------- 超链接上绑<%#Eval("URL") %> --------------------编程问答-------------------- <dx:GridViewDataHyperLinkColumn Caption="Response Info" FieldName="Command_Response" VisibleIndex="5">
<div runat="server" >
<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False">
<Columns>
<dxwgv:GridViewDataTextColumn Caption="ID" FieldName="ID" VisibleIndex="0">
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn Caption="Name" FieldName="Name" VisibleIndex="1">
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn Caption="department" FieldName="department" VisibleIndex="2">
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataHyperLinkColumn Caption="url" FieldName="url" Name="TestUrl" VisibleIndex="3">
<PropertiesHyperLinkEdit TextFormatString="">
<ClientSideEvents Click="openUrl()" />
</PropertiesHyperLinkEdit>
</dxwgv:GridViewDataHyperLinkColumn>
</Columns>
</dxwgv:ASPxGridView>
</div>
<PropertiesHyperLinkEdit NavigateUrlFormatString="javascript:;" TextField="Command_Response">
</PropertiesHyperLinkEdit>
</dx:GridViewDataHyperLinkColumn> --------------------编程问答-------------------- <dx:GridViewDataHyperLinkColumn Caption="档案路径" FieldName="Tarchives_docpath"
ReadOnly="True" VisibleIndex="9">
<PropertiesHyperLinkEdit NullDisplayText="无档案" Text="查看档案"
NavigateUrlFormatString="../../uploads/familyDoc/{0}">
</PropertiesHyperLinkEdit>
</dx:GridViewDataHyperLinkColumn>
测试通过。
补充:.NET技术 , ASP.NET