unknowndreamer
New Member
I've got one long GridView control on ma website. It allows row selection. The problem is, when I scroll down this GridView and select some of the bottom rows the selection occurs, but whole GridView is scrolling back to top. I refer this link for resolving my problem but not able to find any property into GridView control. I also search on msdn Link . Please guide me where is this property and how can resolve my issue.Base on below checkbox event I select the row. After check the checkbox enable to delete and edit button.\[code\] protected void ChkChanged_Click(object sender, EventArgs e) { int count = 0; foreach (GridViewRow gr in grdProducts.Rows) { CheckBox chkGrd = ((CheckBox)gr.FindControl("CheckBox2")); ImageButton editbutton = gr.FindControl("btnEdit") as ImageButton; ImageButton deleteButton = gr.FindControl("btnDeleted") as ImageButton; if (chkGrd.Checked) { count++; editbutton.Visible = true; deleteButton.Visible = true; if (count > 1) break; } else { editbutton.Visible = false; deleteButton.Visible = false; } } if (count > 1) { foreach (GridViewRow gr in grdProducts.Rows) { CheckBox chkGrd = ((CheckBox)gr.FindControl("CheckBox2")); ImageButton editbutton = gr.FindControl("btnEdit") as ImageButton; ImageButton deleteButton = gr.FindControl("btnDeleted") as ImageButton; if (chkGrd.Checked) { editbutton.Visible = false; deleteButton.Visible = false; } } DeleteAll.Enabled = true; } }\[/code\]