Removing a row in each ItemDataBound (with condition) results in a paging problem

R

Rabii

Hello,

I'm using a datagrid. In each ItemDataBound, i have a lot of
instructions and for one condition i have to hide current row. So I
use e.item.visible = false and that works fine. But, this cause a
problem in paging : For example, consider that the page size = 10 and
25 row as a result of my query. So I should have 3 page. Consider that
my condition will elminate 18 row (for example). So I should have 1
page (because I have only 7 row). But, It is not the case. I still
have 3 page. The first my contain 2 row, the second 4 and the third 1
row !!

Thanks for help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top