473,385 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

PageIndexChanging in a GridView

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
May 29 '07 #1
1 9932
PageIndexChanging is an event of GridView not page. To add this event
handler, add onpageindexchanging="<name of the PageIndexChanging handler>" to
the <asp:GridViewelement in the aspx page.

<asp:gridview id="x" runat="server"
onpageindexchanging="x_PageIndexChanging" ... >

Hope this helps?

"Jason Huang" wrote:
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
May 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nalaka | last post by:
Hi, I have a gridView (grid1), which as a templateColumn. In the template column, I have put in a gridView (grid2) and a ObjectDataSource (objectDataSource2). Question is... How to I pass the...
3
by: Kevin | last post by:
We have a base class that is responsible for creating the navigation and look and feel of our applications. So all our web pages inherit from this base page so they don't have to worry about the...
1
by: Jason Huang | last post by:
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...
3
by: HariKutty | last post by:
Hi! I am using ASP.NET with VB.In my application,i am using a gridview..My total records in the Database is 50.I am getting values from the database by passing some of the parameters .My O/P...
2
by: napstar | last post by:
I have a gridview in a web form and when I build the website I get this error:"The GridView 'PatientGridView' fired event PageIndexChanging which wasn't handled" Can any one helpe me out with this?
3
by: phpmel | last post by:
Hi Guys, I have a problem. I have a gridview that is bound to a SQLDataSource using a stored procedure that is used for Searching. it works fine. my problem is that if I select a page index, the...
2
shek124
by: shek124 | last post by:
In my form, the gridview is bind , according to my selectedvalue in dropdownlist How can do paging in gridview using the pageindexchanging event for this condition.. please hwlp me
0
by: s14m27 | last post by:
Hi..... I have a gridview control with paging enabled. I am entering values in the first page of the grid. On clicking the save button i automatically want to save & redirect it to the next page...
3
by: Peter | last post by:
I have a GridView which is populated by List<ofObjects> Does anyone have example of how to sort the columns of this GridView? I have found examples without DataSourceControl but these use...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.