By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

asp.net visual web developer problem selecting data in gridview after search

P: 55
Hi i have an update page where i update data when a user select a row in the gridview, i also have a search function that displays the data in the gridview all those data that matched the search. my problem is that when i select the data after i search it the selected input would be coming from the previous gridiview look of the data

example:
standard gridview look

Gridview
1strow
2ndrow
3rdrow

after i search for the 3rd row naturally it comes up in the gridivew and would be the only thing left of the gridview

Gridview
3rdrowdata (in the firstrow)

but when i select it the data i get is that from the 1strow..

i hope i made my self clear.

Thanks.

in other forums i was told that i should try databinding the gridview as the gridview selectedindex is changed but as i try binding it still fails

ASP.NET 2.0
Using Visual Web Developer
In Windows Vista and XP

i won't be placing my code yet as i don't know where the problem in my code occurs but if you need it i'll provide my code
Nov 15 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.