Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Eric Caron #1
Displaying current sort indication in the header of a column
Hello all,
Using the .NET framework 1.1, is there a way to do this without too much
coding? I've the got the sorting of my custom columns working both ways (if
I click on the same column, it reverses the sort direction), but I would
like to have an indication of the current sort direction by displaying an
upward or downward pointing arrow. I had it working halfway, but I have no
way of reverting to the original column name if I just concatenate the
header name with a graphic.
Is the best way to save the column header captions on the first page load or
is there a simpler way?
Eric
Eric Caron Guest
-
Displaying Current Threads
Is there a way to create a CFM page that will display all the current threads and also list the threads that are queued with the time they started,... -
Build a label header for DG, to sort
Hi I write a custom control that inherits from Label, that will hold the sort expression. As long as I know, there is no built in way to get sort... -
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... -
Displaying current frame
I set up a dynamic text box, "page", on the stage to show the current frame number. This is a script I have not tried yet and can not get to work.... -
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB.
Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. hi, guys i have asp... -
Brock Allen #2
Re: Displaying current sort indication in the header of a column
You could do it another way, such as adding a Image control into the header
cell that shows the image. Then if the column isn't the one being sorted
you don't add the Image control (or remove the control) from the header cell.
-Brock
DevelopMentor
[url]http://staff.develop.com/ballen[/url]
> Hello all,
>
> Using the .NET framework 1.1, is there a way to do this without too
> much coding? I've the got the sorting of my custom columns working
> both ways (if I click on the same column, it reverses the sort
> direction), but I would like to have an indication of the current sort
> direction by displaying an upward or downward pointing arrow. I had
> it working halfway, but I have no way of reverting to the original
> column name if I just concatenate the header name with a graphic.
>
> Is the best way to save the column header captions on the first page
> load or is there a simpler way?
>
> Eric
>
Brock Allen Guest
-
Eric Caron #3
Re: Displaying current sort indication in the header of a column
Thank Brock,
I found a sample that describes a similar technique, where you add a label
control to the cell with a character from the webdings font that represents
an upward or downward arrow (characters 5 and 6 respectively). It seems
that if I add the control in the ItemCreated event, the control is not
preserved between postback, so the header text returns to its default state.
This behaviour is kind of strange to me, but I'm glad it works. =)
Eric
"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:803460632526252551654576@msnews.microsoft.com ...header> You could do it another way, such as adding a Image control into thecell.> cell that shows the image. Then if the column isn't the one being sorted
> you don't add the Image control (or remove the control) from the header>
> -Brock
> DevelopMentor
> [url]http://staff.develop.com/ballen[/url]
>
>
>>> > Hello all,
> >
> > Using the .NET framework 1.1, is there a way to do this without too
> > much coding? I've the got the sorting of my custom columns working
> > both ways (if I click on the same column, it reverses the sort
> > direction), but I would like to have an indication of the current sort
> > direction by displaying an upward or downward pointing arrow. I had
> > it working halfway, but I have no way of reverting to the original
> > column name if I just concatenate the header name with a graphic.
> >
> > Is the best way to save the column header captions on the first page
> > load or is there a simpler way?
> >
> > Eric
> >
>
>
Eric Caron Guest



Reply With Quote

