Click here to Skip to main content
16,016,562 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to dynamically bind the gridview with Title, Name, NavigateURL.

Can you please help me out to solve the problem.
XML
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="145px"
            Width="285px" >
            <Columns>
                <asp:BoundField HeaderText="Title" />
                <asp:BoundField HeaderText="Name" />
                <asp:TemplateField HeaderText="Download">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("//notepad.txt") %>'>Download</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
Posted
Updated 6-Mar-11 19:02pm
v3

1 solution

Have a look at this article, it will help you out:
Create Dynamic GridView Control in C#/ASP.Net[^]


Just to learn more, do have a look at this article too: Editable Nested GridView (All-in-One)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900