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.