Sorting DataGrid after Row Data Changed

Discussion in 'ASP .Net Web Controls' started by jdn, Nov 15, 2004.

  1. jdn

    jdn Guest

    After I get a DataSet, and before I bind it to a DataGrid, I search through
    the rows on a particular column, and if the column has certain data, I change
    it.

    The data change is reflected in the datagrid, so that's fine. However, when
    I sort on the column with the changed data, it sorts on the original value.

    For example, if the original data started with the letter "M" and the new
    data starts with the letter "G", it still sorts the rows as if it started
    with "M".

    Any ideas on what I might be doing wrong, or how to fix this?

    TIA
    jdn
     
    jdn, Nov 15, 2004
    #1
    1. Advertising

  2. jdn

    jdn Guest

    Never mind, idiot error of the spelling mistake variety.

    "jdn" wrote:

    > After I get a DataSet, and before I bind it to a DataGrid, I search through
    > the rows on a particular column, and if the column has certain data, I change
    > it.
    >
    > The data change is reflected in the datagrid, so that's fine. However, when
    > I sort on the column with the changed data, it sorts on the original value.
    >
    > For example, if the original data started with the letter "M" and the new
    > data starts with the letter "G", it still sorts the rows as if it started
    > with "M".
    >
    > Any ideas on what I might be doing wrong, or how to fix this?
    >
    > TIA
    > jdn
    >
     
    jdn, Nov 15, 2004
    #2
    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. Luis Esteban Valencia

    Make a DataGrid row editable after user selects the row

    Luis Esteban Valencia, Jan 12, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    360
    Luis Esteban Valencia
    Jan 12, 2005
  2. Replies:
    1
    Views:
    727
    Rosanne
    Oct 11, 2005
  3. D
    Replies:
    0
    Views:
    239
  4. AlainCD
    Replies:
    0
    Views:
    210
    AlainCD
    Jan 12, 2006
  5. greenb
    Replies:
    1
    Views:
    137
    Michael Baltic
    Jul 6, 2005
Loading...

Share This Page