PageIndexChanging in a GridView

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,


In my C# 2.0 web form project, I have GridView1 in Form1.aspx.
I am wondering why I can't find the PageIndexChanging event in the
Form1.aspx.cs but the GridView1 still can go to other pages.
So, where exactly does the C# 2.0 web handle the PageIndexChanging thing?
Thanks for help.


Jason
 
This probably should have been posted in the ASP.NET group since it is really
not a C# language question.

right - click on your gridview in Design mode on the page, and in the
Properites sheet, click the little yellow "events" lightning bolt icon at the
top.
Then, double - cliick on the "PageIndexChanging" event and your event will
be wired up and stub code for the handler method will be created.
Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top