1 Reply Latest reply on Aug 2, 2006 7:27 AM by pvjedder

    Checked checkboxes repeating when scrolling in a datagrid

      I'm having some problems with checkboxes that I have placed as a column in a datagrid. When there aren't many rows and scrolling in the grid is not necessary to see them, everything behaves fine. However, if I have to scroll to see all of the rows, then the wierd stuff starts. If I check one of the checkboxes and then scroll down, as soon as the checkbox is out of view, the next box that scrolls up will be checked. This will happen no matter how many boxes are checked or unchecked. Does anyone have any idea why this is happening? Thanks in advance for any help.

      Here is my code:

      <mx:DataGrid id="dg" width="344" height="211" dataProvider="{getUsers.lastResult.users.person}" itemClick="calcNum(1);">
      <mx:DataGridColumn headerText="" dataField="included" width="30" >
      <mx:CheckBox id="inc" width="20" x="2" y="2" click="data.included = inc.selected;"/>
      <mx:DataGridColumn headerText="Name" dataField="name"/>