Datagrid and header with image

Posted: 07-07-2003, 05:27 PM
Iam trying to implement sorting.
I know how to display a button in the header of an datagrid. How can i
display an image with down arrow and uparrow along the side of button on the
header.
Any sample pointers will be of great help.

Thanks




Reply With Quote

Responses to "Datagrid and header with image"

Alvin Bruney
Guest
Posts: n/a
 
Re: Datagrid and header with image
Posted: 07-07-2003, 06:09 PM
You will need to create a label control in th itemcreatedevent eventhandler,
set the font to webdings and the text to 5 for down 6 for up then add the
label to the header cell
if(listitemtype == header)
Label arrow = new Label
Label.Font = webdings
Label.Text = 5
e.item.cells[1].controls.add(label)
you will also need to store the sort direction or get the control, check the
text and flip it depending on what it is.

this is pseudo code by the way.

"sunil" <sunil_godiyal@yahoo.com> wrote in message
news:uA$ZHzKRDHA.2204@TK2MSFTNGP12.phx.gbl...
> Iam trying to implement sorting.
> I know how to display a button in the header of an datagrid. How can i
> display an image with down arrow and uparrow along the side of button on
the
> header.
> Any sample pointers will be of great help.
>
> Thanks
>
>
>
>

Reply With Quote
 
Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid header Cambridgeways ASP.NET Data Grid Control 2 01-24-2004 03:31 AM
Fixed datagrid header, abacnet ASP.NET Data Grid Control 3 08-12-2003 01:17 AM
PreRender Datagrid Header Nagul ASP.NET Data Grid Control 0 07-26-2003 02:13 PM
DataGrid with image in the Column Header Mark ASP.NET Data Grid Control 1 07-17-2003 07:36 PM
DataGrid header and <TH> Bassel Tabbara [MSFT] ASP.NET General 1 06-27-2003 07:13 PM