Vikas,

Please check if it works for you


for (int i = 0; i < grid.Rows.Count; i++)

{

     GridViewRow row = grid.Rows[i];

     bool isChecked = ((CheckBox) row.FindControl("<checkboxid>")).Checked;

     if (isChecked)

     {

            //select the required cell info for the row i

     }

}





On 4/14/09, vikas arora <[email protected]> wrote:
>
> emp_id column map with checkbox
>
> On Tue, Apr 14, 2009 at 10:25 AM, Cerebrus <[email protected]> wrote:
>
>>
>> What database field do the checkboxes map to?
>>
>> On Apr 14, 9:40 am, vikas arora <[email protected]> wrote:
>> > hi everyone,
>> >
>> > I have a gridview which has several columns like as
>> > emp_id,emp_name,emp_salary etc.
>> > and left column has checkboxes.
>> >
>> > I need to display those record only which checkboxes are selected.
>> > can anyone help me
>> >
>> > Thanx
>> > --------------
>>
>
>


-- 
Regards

Guru

Reply via email to