Sorting again

Discussion in 'ASP .Net' started by na, Oct 31, 2006.

  1. na

    na Guest

    I read several postings dealing with adding sorting images, but none of
    them has quite the same conditions like mine.

    I have a ASPX page that contains a datagrid that dispalys any data
    table in my database. This datagrid has AutoGenerateColumns = false,
    so in the InitializeComponet() I programmaticly add the desired
    columns. The problem is the HeadeText is not necessary the same as the
    DataField. So far I am able to add sorting images (up arrow or down
    arrow) only to those columns that have the same value in both
    properties. I used an invisible web text control to hold the sorting
    expression of the clicked column that is set during SortCommand event
    In the ItemDataBound event I need to compare this sort expression with
    each column's datafield or column's header text then add the sorting
    image appropietly. Anyway to add the sorting image to those columns
    that have header text different than the underlining datafield? Thanks.
    na, Oct 31, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. amit
    Replies:
    0
    Views:
    366
  2. che
    Replies:
    2
    Views:
    469
  3. abcd

    Importing again and again

    abcd, Jun 8, 2006, in forum: Python
    Replies:
    9
    Views:
    311
    Maric Michaud
    Jun 9, 2006
  4. Replies:
    4
    Views:
    386
  5. Ò»Ê×Ê«

    A design problem I met again and again.

    Ò»Ê×Ê«, Apr 1, 2009, in forum: Python
    Replies:
    24
    Views:
    682
    Dennis Lee Bieber
    Apr 4, 2009
Loading...

Share This Page