Sorting when there's an image in the header doesn't seem to work....

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default 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
    headerimageurl= portion, it works fine. Otherwise it doesn't.

    Any suggestions?

    TIA

    Jeffrey.


    UJ Guest

  2. Similar Questions and Discussions

    1. Datagrid sorting does not work
      I have added sorting to my datagrid. I added the event handler Private Sub dgrItems_SortCommand(ByVal source As Object, _ ByVal e As...
    2. GridView paging/sorting - will it work with stored procedures?
      Can anyone tell me whether the new ASP.NET 2.0 GridView control supports sorting and paging when the data source is a SQL stored procedure, e.g....
    3. Sorting link disappear when put control in the header
      HI guys, I have a datagrid with 5 coloums. What I want to achive is put a button or a checkbox into each header of the coloums and when fires an...
    4. 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...
    5. 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...
  3. #2

    Default Re: Sorting when there's an image in the header doesn't seem to work....

    Hi Jeffrey,

    When you click on the header image is it posting back at all? Are
    there other columns in the same DG that aren't images set to sort that
    actually work or is it off for all of them?

    I've noticed that sometimes after changing a datagrid in a relatively
    simple way that the DG seems to lose its link to the event handlers
    I've defined for it.

    You've probably already done this, but if you look in the designer view
    properties Event section, is there still something in the SortCommand
    slot?

    Sometimes I've had to copy and paste the code I had defined in an event
    handler for paging or ItemDataBound into the same function after I had
    to readd it.

    Let me know if that helps, but if it's not even close, and if this
    isn't a completely absurd waste of time, can you add a new version of
    the DG or copy the DG and and test it?

    HTH.

    EJD Guest

  4. #3

    Default Re: Sorting when there's an image in the header doesn't seem to work....

    If I put a header image in - it's acting like the OnSort isn't getting fired
    (I've got a break point in the code on the first line of the routine.)
    Without the header graphic, it stops at the break point.

    Guess I'm going to have to do it all manually. Too bad.....

    Thanks.

    "EJD" <jpfoonja@hotmail.com> wrote in message
    news:1116724015.329164.227630@f14g2000cwb.googlegr oups.com...
    > Hi Jeffrey,
    >
    > When you click on the header image is it posting back at all? Are
    > there other columns in the same DG that aren't images set to sort that
    > actually work or is it off for all of them?
    >
    > I've noticed that sometimes after changing a datagrid in a relatively
    > simple way that the DG seems to lose its link to the event handlers
    > I've defined for it.
    >
    > You've probably already done this, but if you look in the designer view
    > properties Event section, is there still something in the SortCommand
    > slot?
    >
    > Sometimes I've had to copy and paste the code I had defined in an event
    > handler for paging or ItemDataBound into the same function after I had
    > to readd it.
    >
    > Let me know if that helps, but if it's not even close, and if this
    > isn't a completely absurd waste of time, can you add a new version of
    > the DG or copy the DG and and test it?
    >
    > HTH.
    >

    UJ Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139