Checkbox and select row

In my grid (see viewtopic.php?f=2&t=17918) i’ve some checkboxes and editor fields. If a user check a box automatic the next (input) cell should be selected.
The first what struck me: If a checkbox is selected/unselected the row istn’t marked. Ok, if this is so.
So i do the following:

mygrid.attachEvent("onCheck", function(id, index, value)
{
  mygrid.selectRow(id,true,true,true);
  switch(index)
  {
    case 3:
    case 5:
    case 7:
      mygrid.cellById(id,2).setDisabled(false);
      if (this.cells(id,3).getValue() == 1 ||
	  this.cells(id,5).getValue() == 1	||
	  this.cells(id,7).getValue() == 1)
      {
        mygrid.selectCell(id,(index+1));
        mygrid.editCell();
      }
      break;
  }
  return true;
});

That works if i’ve preselected the row but it doesn’t work when the row isn’t it. It seems to be that ‘selectRow’ doesn’t work in this case.
Why not?

Sincerely, Carsten

Try to change your code like this:

window.setTimeout(function(){ mygrid.editCell(); },1);

It doesn’t work :confused: