开发者

Add gridview column in code behind

开发者 https://www.devze.com 2023-02-11 19:43 出处:网络
I am working on gridview in C# and I need t开发者_运维问答o add a column dynamically. I need to achieve the following mark up in the code behind,

I am working on gridview in C# and I need t开发者_运维问答o add a column dynamically. I need to achieve the following mark up in the code behind,

   <headertemplate>                          
    <a href="javascript:var popup = window.open('Pop.aspx? param=myParameter','Pop','width=200,height=200');">
     <asp:Label ID="Label1" runat="server" Text="ColumnName" 
      ToolTip="Click here for more information"></asp:Label>
       </a>
   </headertemplate>
<Itemtemplate>
....

The column has underline where user can click to open a popup.

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消