Welcome, Guest
  • Author Topic: Searching Dataset Results  (Read 3622 times)

    cristen

    • Server what's that
    • *
    • Posts: 4
      • View Profile
    Searching Dataset Results
    « on: 05/04/04, 14:25 »
    I have a dataset that is populated with results from a query that are then passed to a datagrid.  I need to be able to further narrow the results in the dataset with a search of the results.  Does anyone know how to go about searching the dataset and then repopulate the datagrid?  

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:Searching Dataset Results
    « Reply #1 on: 05/05/04, 02:20 »
    The dataset have the find() method, check help. Then you can re-build the datagrid using myDataGrid.removeAllColumns() and copy the dataset content to the datagrid. Also based on your bindings, the datagrid updates itself or you need to force the update based on the dataset modelChanged event.

    Jorge

    « Last Edit: 05/05/04, 02:22 by Jorge Solis »