Ask a Question related to ASP.NET General, Design and Development.
-
sunil #1
Datagrid and header with image
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
sunil Guest
-
How to use image as pannel header?
hi all, we here here are building a flex application for Laingorourke UK's domestic housing solution, which will cater the dynamic needs of... -
Sorting when there's an image in the header doesn't seem to work....
I've got a datagrid that works just ducky. I then put in the headers image and now my sort event doesn't get fired. If I take out just the... -
Image in header column (not replacing column header text)
I have a sortable (asc/desc) datagrid and would like to add a small arrow icon (down/up) next to the column header text to improve the UI. Is this... -
Image Header
Hi! I don't know if this is ok, so can somebody give me some explanation. I made some php script to get Header from http request. When I... -
DataGrid with image in the Column Header
Is it possible to have both an image and text as part of a Column Header in a DataGrid? Ideally, you could click on either sort the column. I have... -
Alvin Bruney #2
Re: Datagrid and header with image
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...the> 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> header.
> Any sample pointers will be of great help.
>
> Thanks
>
>
>
>
Alvin Bruney Guest



Reply With Quote

