title: AS3 Flash checkbox in datagrid
body: <p>I have successfully fill the grid from mysql database using service.
  I have datagrid like this</p>
  
  <pre><code> Col_1     Col_2    Col_3    Col_4
  [Chekbox]  value    value    value
  [Chekbox]  value    value    value
  [Chekbox]  value    value    value
  [Chekbox]  value    value    value
  </code></pre>
  
  <p>NOTE : plid is value for checkboxes</p>
  
  <pre><code>for (varName in returnObj) {
  var plid                = int   (returnObj[varName]["plid"]);
  var varState            = String(returnObj[varName]["state"]);
  var varCity             = String(returnObj[varName]["city"]); 
  
   arrDP.push({        //arrDP is array defined
    //Column          Value
    Select          : plid, 
    State           : varState,
    City            : varCity
  });
  
  var dp:DataProvider              = new DataProvider(arrDP);
  var select:DataGridColumn        = dg.addColumn("Select");
  var state :DataGridColumn        = dg.addColumn("State");
  var city  :DataGridColumn        = dg.addColumn("City");    
  dg.dataProvider                  = dp; //dg IS DATAGRID NAME AND dp IS DATAPROVIDER
  }
  </code></pre>
  
  <p>value for chekboxes is : 1 &amp; 0. where 1 mean TRUE(selected) and 0 mean FALSE(not selected).
  my question is how to show checkboxes to be SELECTED for value 1??
  as checkbox need an event to be occur for state change.
  I am using the following cellrender class.</p>
  
  <p><a href="http://www.actionscript.org/forums/showthread.php3?t=234416" rel="nofollow">http://www.actionscript.org/forums/showthread.php3?t=234416</a></p>
  
  <p>Thanks in advance.</p>