Link to home
Start Free TrialLog in
Avatar of JCWEBHOST
JCWEBHOST

asked on

select first item in a gridview

Hey guys i need to get the first item in my gridview, which is a hyperlink and make the hyper link class to avtive.

here my aspx page:

 
<asp:GridView ID="GridView" runat="server" GridLines="None" ShowHeader="False" AutoGenerateColumns="False" HorizontalAlign="Center">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <table cellpadding="0" cellspacing="0" style="width: 210px;">
                                                    <tr>
                                                        <td class="middle">
                                                            <asp:HyperLink ID="HyperLink" runat="server" ToolTip='<%# Bind("title") %>' Text='<%# Bind("short_title") %>' NavigateUrl='<%# Eval("id", "~/Projects.aspx?id={0}") %>'></asp:HyperLink>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>

Open in new window


i need c# code please...

i am binding my gridview with c# code.
ASKER CERTIFIED SOLUTION
Avatar of Kiran Sonawane
Kiran Sonawane
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial