DataGrid change ItemIndex

Discussion in 'ASP .Net' started by chandy@totalise.co.uk, Jan 5, 2006.

  1. Guest

    Hi,

    I need to be able to move individual rows up and down in my datagrid.
    the ItemIndex property of the DataGridItem is ReadOnly so how can this
    be accomplished? Manual recreation of the dataset and rebinding?

    TIA

    Chandy
     
    , Jan 5, 2006
    #1
    1. Advertising

  2. Chandy,

    You are on the right track. You would change an index number in the
    DataTable and then rebind.

    --
    Sincerely,

    S. Justin Gengo, MCP
    Web Developer / Programmer

    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzsche
    <> wrote in message
    news:...
    > Hi,
    >
    > I need to be able to move individual rows up and down in my datagrid.
    > the ItemIndex property of the DataGridItem is ReadOnly so how can this
    > be accomplished? Manual recreation of the dataset and rebinding?
    >
    > TIA
    >
    > Chandy
    >
     
    S. Justin Gengo, Jan 6, 2006
    #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. Rod
    Replies:
    2
    Views:
    893
  2. Alan Eilers

    ItemIndex is -1 in ItemCommand after selecting page in DataGrid

    Alan Eilers, May 12, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    273
    Scott Mitchell [MVP]
    May 13, 2004
  3. susie
    Replies:
    0
    Views:
    162
    susie
    Sep 29, 2003
  4. Jose Fernandez

    DATASET DATAGRID ITEMINDEX DATASETINDEX

    Jose Fernandez, May 25, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    302
    Jose Fernandez
    Jun 1, 2005
  5. janetb

    datagrid itemIndex cell reference

    janetb, May 10, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    181
    janetb
    May 10, 2006
Loading...

Share This Page