首页 新闻 会员 周边

ComponentArt Grid列值超链??

0
悬赏园豆:20 [已解决问题] 解决于 2010-05-07 14:43

如何把ComponentArt Grid的 列值 超 链 化?

请高手指点!

发香已散的主页 发香已散 | 初学一级 | 园豆:4
提问于:2010-05-05 18:20
< >
分享
最佳答案
0

试试在<ServerTemplates>
          <ComponentArt:GridServerTemplate Id="ComboBoxTemplate">
            <Template>
   *******
            </Template>
          </ComponentArt:GridServerTemplate>

中加入你的内容

收获园豆:10
邀月 | 高人七级 |园豆:25475 | 2010-05-05 23:33
以最下面的为准!
发香已散 | 园豆:4 (初学一级) | 2010-05-07 14:43
其他回答(1)
0

  <ServerTemplates>

    ...

    <ComponentArt:GridServerTemplate ID="linkButtonTemplate" />

      <Template>

        <asp:LinkButton ID="lb" runat="server"

          Text="ItemCommand" CommandName="MyCommand" />

      </Template>

    </ComponentArt:GridServerTemplate>

  </ServerTemplates>

收获园豆:10
Astar | 园豆:40805 (高人七级) | 2010-05-06 08:35
<ClientTemplates> <ComponentArt:ClientTemplate ID="dlFile"> <a href="test.aspx?filePath=##DataItem.GetMember('filePath').Value##"></a> </ComponentArt:ClientTemplate> </ClientTemplates> 超链列: <ComponentArt:GridColumn DataField="doctype" HeadingText="DocType" Width="80" DataCellClientTemplateId ="dlFile"/> 导致结果是DocType 什么也不显示了。。如何解决?
支持(0) 反对(0) 发香已散 | 园豆:4 (初学一级) | 2010-05-06 10:50
<a href="http://.../##DataItem.GetMember('filePath').Value##" target="_blank"></a>
支持(0) 反对(0) 发香已散 | 园豆:4 (初学一级) | 2010-05-07 14:42
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册