if checked set value

Why is this code not working?

if ( mygrid.isChecked(14) = true ) { mygrid.getCombo(19).value = "3"; }

I need this:
If in column 14 checkbox(“ch”) is checked -> Set the value of the “co” in Column 19 to 3.

Could anyone help me?

dhtmlxGrid doesn’t have isChecked() method. You should use:

if ( mygrid.cellById(rowId,14).isChecked() = true ) { mygrid.getCombo(19).value = "3"; }