new SE 0 Junior Poster in Training

Hi all,
i have a problem with my datagrid attribute "OnPageIndexChanged="gridedit_PageIndexChanged""...
for example if i have 2 page and the second page contain only one record.. if i want to delete the record, this error appear..
anyone can help me plz..

Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.