471,348 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

ASP.NEt 2.0 GridView: OnDataBound fires after SelectedIndexChanged

My primary GridView is firing an OnDataBound after Selecting a row (which
triggers SelectedIndexChanged).

This only happens in the following scenario:

- User enters a textbox search value and hits "GO"
- Gridview is filled with results (4 grids in all, only the "primary" is
filled at this point)
- User Selects a row from the gridview.
- User clicks an "Add" button which calls a javascript window.showmodaldialog
- User peforms on update (on a table not related to data in this gridview).
The "update" window is closed.
- Javascript issues a redirect to refresh the screen - essentially "starting
over", only with only the orginal "selected" row displayed in the primary
grid. (Ideally, I only want to re-populate the grid related to the data
change, but I don't know how to do that).
- User Selects the one and only row now displayed in the primary grid.
SelectedIndexedChange is correctly fired, but after that, so is a
OnDataBound. Is this a bug? Why would it fire after the select, and why only
under these conditions? Ideas?

Aug 3 '05 #1
0 7645

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Flinky Wisty Pomm | last post: by
3 posts views Thread by tarscher | last post: by
1 post views Thread by Andrew Hayes | last post: by
3 posts views Thread by gnewsgroup | last post: by
3 posts views Thread by David C | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.