Addrow like removerow(index)

Discussion in 'Questions (Windows Mobile)' started by Vito, Feb 2, 2008.

  1. Vito

    Vito Member Licensed User

    Hi,

    i want to add rows at the beginning of the table and not at the end.
    Is there any solution? Maybe "table1.addrow(index)"

    Thank you
     
  2. RandomCoder

    RandomCoder Well-Known Member Licensed User

    You can't add a row at the start of the table.
    AddRow automatically inserts rows at the end of the table.
    However it is possible to use a hidden column containing an index value.
    You could then insert a new row and sort the table using the unseen index.
    This is I believe the recommended approach to take.

    Regards,
    RandomCoder
     
  3. Vito

    Vito Member Licensed User

    Thank you,

    i tried it and it works.
    But when i save the sorted table (as .csv) it does not save it as sorted but as it was before.

    "Sorry for my english."
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    This is true, and has been reaised a few times here within the Forum.
    the solution is to either filter the table each time you load from the file, OR, you can create a new tabel copying across the cells from the filtered table and then save this to your file.

    Regards,
    RandomCoder
     
Loading...