Hi Heming,
I am trying to set the value for the store in a datagrid based on the function that you suggested (store.setValue....). Unfortunately, I am not being able to understand the parameters that I need to pass to get this to work. I am pasting a portion of my code (pertaining to data grid). I hope you'll be able to help me starighten this out:
HTML CODE:
<div data-dojo-type="dijit.form.Form" id="distDataTable" name="distDataTable">
     <div id="stateInfo" name="stateInfo"></div><!--Message informing which State/UT is being viewed-->
      <div id="indicatorInfo" name="indicatorInfo"></div>  
        <table data-dojo-type="dojox.grid.DataGrid" class="grid" data-dojo-id="grid" id="grid" rowsPerPage="15" rowSelector="20px">
          <thead>
            <tr>
              <th field="name" width="auto" height="30px">District</th>
              <th width="auto" height="30px"><p style="font:Calibri; font-size:12px;">Indicator value (%)</p></th>
            </tr>
          </thead>
        </table>
        <div data-dojo-type="dijit.form.Form" id="downloadData" name="downloadData">
          <button dojoType="dijit.form.Button" id="dataDownload" name="dataDownload">DOWNLOAD THIS DATA</button>
        </div>
        <div id="clear" style="clear:both;"></div>
      </div>
JS CODE:
queryTask.execute(query, function(featureSet){
     var results=[], attr=[], items=[];
     for (i=0, il=featureSet.features.length; i<il; i++) {
          var graphic = featureSet.features;
          graphic.setInfoTemplate(infoTemplate);
          distGraphicsLayer.add(graphic); 
          items.push(graphic.attributes);
          }
dijit.byId('progress').hide(); 
distGraphicsLayer.show();
data = {items:items};
     
          store = new dojo.data.ItemFileWriteStore({data:data});
          if (boxId=="checkNBD"){
            store.setValue(item, "NB_D_SIGNS");
          }
           grid.setStore(store);
    });
I'll be happy to send you the entire code if you like.
Thanks for all yur help,
Samir