Grid Problem

Hello all,

I have placed a web grid in my Enterprise portal site and a text box wher user will select a value.

Also placed a button which will filter the records in the grid properly means the filter works properly.

Grid has the navigation buttons like below

When i click the next button shown in the above image, filter then does not work .Means it displays whole records of the grid.

Can anybody provide me the immediate solution ?