Click here to Skip to main content
15,885,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Gridview,when i click in select button of Gridview ,value selected and fill all respective textbox,but i goes second page of Gridview the privious index or ROW already selected ,if i press delete button the value of row deleted.so How can i unselected next page Gridview row, plz help me
Posted

on your gridview pageindex changing event, set the SelectedIndex of the gridview as -1
 
Share this answer
 
Go to the PageIndexChanging event of your GridView. And set the SelectedIndex as -1. Write this in PageIndexChanging event:
C#
GridView1.SelectedIndex  = -1;


--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900