Welcome, Guest
  • Author Topic: Updating text in a Datagrid - How?  (Read 1698 times)

    samson1

    • Server what's that
    • *
    • Posts: 44
      • View Profile
    Updating text in a Datagrid - How?
    « on: 01/09/06, 23:55 »
    I wish to make the text inside a cell in a Datagrid dynamic, updating as an associated animation takes place.  However, it seems I can only update the text when a new row of the grid is selected.

    Are you able to advise if this is a limitation, or am I doing something wrong?

    Thanks
    Geoff

    samson1

    • Server what's that
    • *
    • Posts: 44
      • View Profile
    Re: Updating text in a Datagrid - How?
    « Reply #1 on: 01/10/06, 00:28 »
    I am simply wanting to update some text... myDataSet_ds.items[currentItem].Status = "now ready";

    I just discovered that putting  myDatSet_ds.setValue(); in the code, updates the cell, but prevents me from selecting a new row.

    Am I close?  Any help appreciated.

    Thanks,
    Geoff
    « Last Edit: 01/10/06, 01:17 by samson1 »

    papachan

    • Moderator
    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Re: Updating text in a Datagrid - How?
    « Reply #2 on: 01/11/06, 12:19 »
    you can edit a specified field at a row (item object) of a dataset compoent, and save it.

    samson1

    • Server what's that
    • *
    • Posts: 44
      • View Profile
    Re: Updating text in a Datagrid - How?
    « Reply #3 on: 01/12/06, 08:47 »
    Thanks, but I know that.  As I mentioned above, the problem is that the new value is not refreshing.

    Geoff

    papachan

    • Moderator
    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Re: Updating text in a Datagrid - How?
    « Reply #4 on: 01/12/06, 11:27 »
    strange, should be a binding problem between components. Have you intent to edit the field from the DataGrid's item object instead?