This is a migrated thread and some comments may be shown as answers.

Sort glyph when sorting on a invisible column

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 14 Dec 2008, 04:35 PM
Hi,

I have a grid view that contains

  •  a decimal column with values (1-4), "STATUS", invisible
  • a image column (STATUS_IMAGE), visible,  that represents the STATUS values with the corresponding image (green flag, yellow flag etc.)

Whenever the user clicks the column head of the STATUS_IMAGE column I programmatically change the sort expression to STATUS so that the images get sorted according to their underlying values. This all works fine, with one exception: The sort glyph is now (correctly) on the invisible STATUS column and is hence also invisible. The visible STATUS column that the user (he thinks ...) is sorting by does not get a sort glyph.

I appreciate this is logically correct, but I'd still like to present the user with the "proper" sort glyph on the visible column. Any way to fake the glyph, maybe?

Thx & kind regards
Frank

1 Answer, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 1
answered on 14 Dec 2008, 05:03 PM
Never mind, figured it out: When the sort is made on BOTH columns then obviously both get the sort glyph. Duh!
Thank you for listening to my ramblings.

Thx
Frank
Tags
GridView
Asked by
Frank
Top achievements
Rank 1
Answers by
Frank
Top achievements
Rank 1
Share this question
or