how to use gridvw first row checkbox selection and second or 3oth row check box use

Posted by Rajesh081725 under C# on 12/23/2012 | Points: 10 | Views : 1206 | Status : [Member] | Replies : 3
Hi,

Can u any one tell me

i have use check box in grid view

For example
i run the grid view
1)At the time all checkbox with database value display in grid view
2)This check box when i select the first row and then i click the next page for grid view
3)then i select any row (for example 30 number row select check box)
4)then i select previous page my check box is show

but above the fourth point is not executed in my grid view.

can u any one know how to avoid this unselect checkbox problem with two pages in c#

how to solve this problem.

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.



Responses

Posted by: Pavanandey on: 12/24/2012 [Member] Bronze | Points: 25

Up
0
Down
store the values on checking and keep cross check while index changing

Thanks
Pavan Kumar
Mark Answer if this fits the need

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajesh081725 on: 12/24/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi pavan,
what u say
i didnt understand
can u explain clearly

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hemanth.Gottipati on: 1/8/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,i think this is useful.........

if (grdview.Rows.Count > 0)
{

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

GridViewRow row = grdview.Rows[i];
bool isChecked = ((CheckBox)row.FindControl("chkSelect")).Checked;
}
}

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response