Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / September 2003

Tip: Looking for answers? Try searching our database.

datagrid page event not firing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C. Ramsey - 17 Sep 2003 17:12 GMT
I am having trouble with a datagrid as part of a
composite web control.  In CreateChildControls, I rebind
the datagrid to a datatable in a session variable if the
page is posted back.  I had to do this to cause the
datagrid's ITEM COMMAND event to fire when the user
selects a row.  However, doing that causes the PAGE INDEX
CHANGED event to NOT fire when the users selects page 1;
the event does fire if the user selects pages 2, 3,
4...n.  If, in debug, I cause the rebind to not occur in
the CreateChildControls routine, the PAGE INDEX CHANGED
event does fire when the user selects page 1.  Can
someone explain?  Also, how do I tell which event from
which control was fired on the postback?  If I knew that,
I suppose I could not rebind if the PAGE INDEX CHANGED
event occurred.
Alan Corbett \(.NET MVP\) - 25 Sep 2003 21:13 GMT
For firing of Events, take a look at:

RaisePostBackEvent

-Alan

> I am having trouble with a datagrid as part of a
> composite web control.  In CreateChildControls, I rebind
[quoted text clipped - 11 lines]
> I suppose I could not rebind if the PAGE INDEX CHANGED
> event occurred.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.