<div>Hi All</div>
<div>I am trying to use tableselect in forms as per below code.</div>
<div> </div>
<div><strong><em><font color="#3333ff">    $form['category_boundary']['category_fieldset']['catg'] = array<br>          (<br>          '#type' => 'tableselect',<br>          '#header' => $header,<br>
          '#options' => $options,<br>          '#multiple' => TRUE,<br>          '#js_select' => FALSE,<br>          );<br></font></em></strong></div>
<div> By manipulating options array, I can add the rows in forms table.</div>
<div> </div>
<div>Sometimes I need to remove the selected rows from form table.</div>
<div>My question is, how can I determine if a particular row is selected.</div>
<div> </div>
<div>Currently using below code to determine which row is selected.</div>
<div> </div>
<div><strong><em><font color="#3333ff">    foreach($form_state['values']['category_boundary']['category_fieldset']['catg'] as $key => $value)<br>    {<br>        if($form_state['values']['category_boundary']['category_fieldset']['catg'][$index] > 0)<br>
        {<br>               //row is selected.<br>        }<br>        else<br>       {<br>                 //row is not selected.<br>        }<br>    }</font></em></strong></div>
<div><strong><em><font color="#3333ff"></font></em></strong> </div>
<div>I can determine all the rows if those are selected or not except the 0th row.</div>
<div>Can somebody tell me, what is the RIGHT way to determine if a particular row in a table is selected or not.</div>
<div> </div>
<div>Best Regards</div>
<div>Kamal</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>