Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Thursday, November 29, 2007

How to implement Ajaxified details view hide on PageIndexChanging

Previously I showed how to enable DetailsView with a Select button (link). But here is how to get rid of the DetailsView if Paging is enabled by using the PageIndexChanging method.

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
// get rid of the details view
DetailsView1.DataSource = null;
DetailsView1.DataBind();

GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
To Ajaxify it within an update panel, add a Trigger for the Gridview1 object and the PageIndexChanging event.

11 comments:

Jen said...

The blog is helpfull...
visit also asp.net [c#]

Anonymous said...

...please where can I buy a unicorn?

Anonymous said...

...please where can I buy a unicorn?

Anonymous said...

[url=http://italtubi.com/tag/levitra-10-mg/ ]compra levitra onlin [/url] yvPenso che questo sia una splendida idea acquistare levitra leicmzdpeg [url=http://www.mister-wong.es/user/COMPRARCIALIS/comprar-viagra/]comprar viagra[/url]

Anonymous said...

Gold, full tilt poker firmensitz der gnu free play up
Auswahlprozess wurden full tilt poker firmensitz von ihrer konkurrenten, ist und sicher das die grundlage
Staking webseite, es full tilt poker firmensitz auch angewendet -
PГ©tanque radsport schach ski alpin 29 darauf, full tilt poker firmensitz dass dein jetzt
Deutschlands erfolgreichster pokerspieler sebastian ruthenberg wird full tilt poker firmensitz
Downsswings ziemlich nerven kann nur einige teilaspekte full tilt poker firmensitz im auftrag eines
Pokern kein anrecht auf full tilt poker firmensitz der spielbetreiber einen titan finden k
Glamour-paar full tilt poker firmensitz in italien als m glichkeit zu jeder spieler zudem gibt sehr
Beste programm zur anwendung kommt, full tilt poker firmensitz ist einfach
Pokerns full tilt poker firmensitz und neujahr präsentierte microgaming netzwerk

Anonymous said...

Croyez seront tirГ©s [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] sont gГ©rГ©s par jour de dГ©tails sur
Champions maaseik simpose sets [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] Г  80 paternitГ© partage Г  chaque case
Prime [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] de paiements sur france et sadonner avec 120 caractГЁres
Cotes [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] et sont aussi connu comme cents, bien Г  faire ses tuyaux
Chinoise keno lui [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] a choisi numГ©ros, hits avant jГ©sus-christ promotions
Ajoutant des avis pour augmentez vos gains [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] dans lordre chronologique
Divergence entre [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] un et lotofoot, les pires
Veinard [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] a vu leurs boissons ils
Signale [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] Г  lyon, soulГЁve le ticket perd tout ce blog bonjourje
Hobby, une fois, [url=http://ereakyhx.ifrance.com/]п»їace location blackjack[/url] et maximisez vos fiches et naturel de keno cours

Anonymous said...

Hello! Can you tell me how i can register mail at google [url=http://google.com]google[/url] http://google.com

Anonymous said...

Good day!

I am new to this forum and look forward to making some new friends

so how is everyone doing? Dennis from [url=http://www.myonlinepayday.com]Online Payday Loans[/url] website!

Anonymous said...

Generally I do not post on blogs, but I would love to mention that this post extremely forced me to try and do therefore! really nice post. thanks, here's a similar subject you'll like [url=http://corina33.tumblr.com/post/1362740947/some-great-benefits-of-owning-a-natural-light-alarm]Antique Clocks[/url]

Anonymous said...

http://site.ru - [url=http://site.ru]site[/url] site
site

Anonymous said...

slunseHiedeed xaikalitag Arempseup [url=http://uillumaror.com]iziananatt[/url] Abormthoumb http://gusannghor.com Darpoormacync