mygrid.setColumnIds()


mygrid = new dhtmlXGridObject(‘gridbox’);

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

    mygrid.setColumnIds(“EmpID,Code”)

    mygrid.setSkin(“light”);

    mygrid.preventIECaching(true);

mygrid.init();

    mygrid.loadXML("…/Get.aspx");

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

    myDataProcessor.enableDataNames(true);

    myDataProcessor.setUpdateMode(“off”);

    myDataProcessor.setTransactionMode(“GET”);

    myDataProcessor.init(mygrid);



when we set the column ids should the ids be the same as the database column names?

It is not necessary, the column IDs in described scenario used to made name of vars on server side more meaningful, you can use the names of columns for more clear coding, but you can use any other names as well.