Menu

DataGrid ResultSet

2004-08-30
2004-08-31
  • Nobody/Anonymous

    When i am sorting a datagrid, the cursor follow increment and the datarow isn't the correct, a mistake.
    How I can allow to sort the datagrid and that it continues agreeing with the cursor.

    Saludos

    Victor (Madrid - Spain)

     
    • Richard Banks

      Richard Banks - 2004-08-31

      Hi Victor,

      I assume you are binding the resultset to a datagrid, and allowing the user to sort it by clicking on column headers?

      If so you need to have a way of linking the row of the datagrid to the row of the dataset, as the cursor works off the dataset row number, not a bound datagrids row number.

      I have bound datagrids in my applications, but haven't linked the current row number back to a cursor position.  As a suggestion you might want to try adding a hidden column containing the original row number and use that to position the cursor.

      - Richard.

       
    • Nobody/Anonymous

      Thank,

      hidden colummn is the solution

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.