Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14049 |

    Is it possible to simply move rows ?? I would like to 1) initially arrange my (un)/bound data using a algorithm and then 2) be able to manually move the rows thereafter.

    Imported from legacy forums. Posted by g.kroger (had 1782 views)

    User (Old forums)
    Member
    Post count: 23064

    Our application also needed such functionality. What we did: swap the <b>content</b> of the rows, instead of the rows.<pre>private static void SwapRows(CellRow a, CellRow b) {
    int count = a.Count;
    for(int i=0; i<count; i++) {
    Cell cellA = a.Cells[i];
    Cell cellB = b.Cells[i];
    object dummy = cellA.Value;
    cellA.Value = cellB.Value;
    cellB.Value = dummy;
    }
    }</pre>

    Imported from legacy forums. Posted by Tommy (had 2874 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.