Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - DataGrid Header Image

 
Thread Tools Search this Thread
Old 03-11-2005, 05:04 PM   #1
Default DataGrid Header Image


I would like to place an image in my DataGrid's header. Code:

<asp:TemplateColumn HeaderText="Sample">
<ItemTemplate>
<asp:HyperLink id="Sample" runat="server" text="Listen"
NavigateURL='<%# Container.DataItem("SampleURL") %>' />
</ItemTemplate>
</asp:TemplateColumn>

I would like to place an icon next to where it says "Sample." Is this
possible. Any help is appreciated.



Sparky Arbuckle
  Reply With Quote
Old 03-12-2005, 07:25 AM   #2
=?Utf-8?B?RG90TmV0SmVyb21l?=
 
Posts: n/a
Default RE: DataGrid Header Image

Hi,

Inplace of "HeaderText" you can use "HeaderImageUrl" to display a Image in
the column header.

Cheers,

Jerome. M

"Sparky Arbuckle" wrote:

> I would like to place an image in my DataGrid's header. Code:
>
> <asp:TemplateColumn HeaderText="Sample">
> <ItemTemplate>
> <asp:HyperLink id="Sample" runat="server" text="Listen"
> NavigateURL='<%# Container.DataItem("SampleURL") %>' />
> </ItemTemplate>
> </asp:TemplateColumn>
>
> I would like to place an icon next to where it says "Sample." Is this
> possible. Any help is appreciated.
>
>

  Reply With Quote
Old 03-12-2005, 01:12 PM   #3
Patrick Olurotimi Ige
 
Posts: n/a
Default RE: DataGrid Header Image

Is it possible to have an image and a text together displayed?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump