Add row of dhtmlxGrid with text box issue.

Hi.
I’m trying to add row from text box value what I write.

[code]…
myGrid.setColTypes(“cntr,ed,ed”);

myForm.attachEvent(“onButtonClick”, function (name) {
if (name == “btnSave”) {
var name = myText.getItemValue(“name”, true);
var position = myText.getItemValue(“position”, true);

myGrid.addRow(myGrid.uid(), [name,position],"");
}
});[/code]

In this code, I can make row with name, position cells.
But because of using ‘cntr’ in setColTypes,
row input different from I intended.

Result
[ name, position, (blank) ]

What I want
[ (auto create), name, position ]

Unfortunately you will have to use:
myGrid.addRow(myGrid.uid(), [,name,position],"");
so the value for the first cell will be reserved