Problem while writing data to dhtmlxGrid cell using Selenium



I am able to access the cell and double click it (for editing) but when i execute the command that writes data in the cell it does not show the data in the cell.

Below is the sample selenium code from my test case:

click //div[@id='chargesGrid']/div[2]/table/tbody/tr[2]/td[4] doubleClickAt //div[@id='chargesGrid']/div[2]/table/tbody/tr[2]/td[4] type //div[@id='chargesGrid']/div[2]/table/tbody/tr[2]/td[4] asd123



Target of type must be not the TD element but input inside of that TD


So, how should i go about it if i want to edit the cell?
I tried assigning temp id to the cell using “assignId” but getting same results.


Thanks for the help.