2 Replies Latest reply on Dec 4, 2008 9:09 AM by Newsgroup_User

    Problem with CheckBox as ItemEditor

    Level 7
      Can anyone tell me why this doesn't work please. The datasource
      "_selected" property does not get updated when I check/uncheck the box.

      thanks.




      for each (var dgc:DataGridColumn in gridResults.columns)
      {
      .....

      if (dgc.dataField == "_selected")
      {
      dgc.setStyle("textAlign", "center");
      dgc.headerText = "Select";
      dgc.width = 50;
      dgc.editable = true;
      dgc.itemRenderer = new ClassFactory(CheckBox);
      dgc.itemEditor = new ClassFactory(CheckBox);
      dgc.editorDataField = "selected";
      }