How to put gif file in Data grid......

Discussion in 'ASP .Net' started by Gill Smith, May 29, 2004.

  1. Gill Smith

    Gill Smith Guest

    I have used hyper link in the datagrid cell wherein user can delete the row
    by clicking on it. How to replace this hyperlink with image in these cell ?
    Gish
     
    Gill Smith, May 29, 2004
    #1
    1. Advertising

  2. Gill Smith

    Joe Fallon Guest

    You can use a Template column instead of a Bound column:

    <asp:TemplateColumn HeaderText="Delete">
    <ItemTemplate>
    <asp:Hyperlink id=Hyperlink2 runat="server" ToolTip="Delete"
    ImageUrl="/myApp/img/Delete.gif"
    NavigateUrl='Delete'>
    </asp:Hyperlink>
    </ItemTemplate>
    </asp:TemplateColumn>

    --
    Joe Fallon




    "Gill Smith" <> wrote in message
    news:...
    > I have used hyper link in the datagrid cell wherein user can delete the

    row
    > by clicking on it. How to replace this hyperlink with image in these cell

    ?
    > Gish
    >
    >
     
    Joe Fallon, May 29, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hb
    Replies:
    6
    Views:
    9,130
  2. Gabriel Rossetti
    Replies:
    3
    Views:
    557
    Jerry Hill
    Apr 25, 2008
  3. Beauregard T. Shagnasty

    Re: filename.gif or filename.gif.jpg?

    Beauregard T. Shagnasty, May 30, 2008, in forum: HTML
    Replies:
    1
    Views:
    755
    Jonathan N. Little
    May 30, 2008
  4. Bergamot
    Replies:
    0
    Views:
    456
    Bergamot
    May 30, 2008
  5. Replies:
    0
    Views:
    103
Loading...

Share This Page