this.getRowById(row_id).style.fontWeight is NULL

Iam using the follwing code to create xml in asp.net:



Get.aspx.cs:



Response.ContentType = “text/xml”;

Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");

Response.Write("");

Response.Write("");

Response.Write("");

Response.Write("<call command=“setSkin”>light");

Response.Write("");

Response.Write("<column width=“75” type=“ro” align=“left” sort=“str”>Column1");

Response.Write("<column width=“75” type=“co” align=“left” sort=“str”>Column2");

while (datareader1.Read())

{

Response.Write("<option value="" + datareader1[0] + “”>" + datareader1[0] + “”);

}

Response.Write("");

Response.Write("<column width=“75” type=“ed” align=“left” sort=“str”>Column3");

Response.Write("<column width=“75” type=“calendar” align=“left” sort=“str”>Column4");

Response.Write("");

Response.Write(“px”);

Response.Write("");

Response.Write("");

int i = 0;

while (datareader.Read())

{

Response.Write("<row id="" + i + “”>");

Response.Write("<cell type=“ro”>" + datareader[0] + “”);

Response.Write("<cell type=“co”>" + datareader[1] + “”);

Response.Write("<cell type=“ed”>" + datareader[2] + “”);

Response.Write("<cell type=“calendar”>" + datareader[3] + “”);

Response.Write("");

i = i + 1;

}

Response.Write("");

Response.End();



Default.aspx: This page contains the grid



mygrid = new dhtmlXGridObject(‘gridbox’);

mygrid.setImagePath("…/codebase/imgs/");

mygrid.preventIECaching(true);

mygrid.init();

mygrid.loadXML("…/Get.aspx",function(){mygrid.setColumnHidden(0,true);});

myDataProcessor = new dataProcessor("…/Update.aspx");

myDataProcessor.setUpdateMode(“off”);

myDataProcessor.setTransactionMode(“GET”);

myDataProcessor.init(mygrid);



When i make changes in to a row the row font turns bold and when i press the update button to send the chanes to the server the changes are being sent but the the row font still remains bold and it gives the following error in the dhtmlxgrid.js file:



Microsoft JScript runtime error: ‘this.getRowById(…).style’ is null or not an object



How can I change the row font back to normal after the updates are sent to the server???

Can i perform multiple inserts, updates and deletes at the same time before sending the data to the server??

Please check the results which returned by “Update.aspx” - it must contain correct action tag with correct sid and tid attributes ( which must be equal to original and updated ID of row )
To check them you can enable debug output by
    myDataProcessor.enableDebug(true)

If correct data returned - row will automatically change to normal state.

>>Can i perform multiple inserts, updates and deletes at the same time before sending the data to the server??
Sure , you can disable auto updates by
    myDataProcessor.setUpdateMode(“off”);
and later, when necessary, sync all changes at once by
    myDataProcessor.sendData();