TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ajay raju
NA
398
0
Error in Datagrid Page Index changed.
Apr 17 2010 9:08 AM
hi!
i am using datagrid to display data and i provide Pageing to the datagrid and i write code like
Protected
Sub
DataGrid1_PageIndexChanged(
ByVal
source
As
Object
,
ByVal
e
As
System.Web.UI.WebControls.DataGridPageChangedEventArgs)
Handles
DataGrid1.PageIndexChanged
DataGrid1.CurrentPageIndex = e.NewPageIndex
BindGrid()
End
Sub
when i click next i shown next Records and also previous Records. i give pagesize = 10.
my problem is when i delete all records off 2nd page (or) 3rd page it shows error i.e.,
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount."
Please give code to solve this error. Please urgent sir.
Thanks.
Reply
Answers (
1
)
one of the listbox data is transfer to another listbox
Datagrid View colboboxcloumn event problem