<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[&#39;category_boundary&#39;][&#39;category_fieldset&#39;][&#39;catg&#39;] = array<br>          (<br>          &#39;#type&#39; =&gt; &#39;tableselect&#39;,<br>          &#39;#header&#39; =&gt; $header,<br>
          &#39;#options&#39; =&gt; $options,<br>          &#39;#multiple&#39; =&gt; TRUE,<br>          &#39;#js_select&#39; =&gt; 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[&#39;values&#39;][&#39;category_boundary&#39;][&#39;category_fieldset&#39;][&#39;catg&#39;] as $key =&gt; $value)<br>    {<br>        if($form_state[&#39;values&#39;][&#39;category_boundary&#39;][&#39;category_fieldset&#39;][&#39;catg&#39;][$index] &gt; 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>