AllowPaging Rows & Columns for a DataGrid

M

matchbx

What is the best way to implement custom RowPaging and ColumnPaging on a
DataGrid?

Background Information:

I have a datatable that is built manually (looping through code). I build a
DataGrid with a dynamic number of columns containing bound checkboxes (could
be 5 could be 100 columns). Everything is bound and working properly
(including javascript postbacks on the checkbox onclick event).

Paging Rows is not a problem that works fine setting the AllowPaging
property in the IDE. But when I comes to implementing Column Paging, well
it's a bit tricky.

I attempted to implement ColumnPaging by setting certain checkbox template
columns Visbile property to true or false. This appear to work but fails when
you navigate to the next set of Rows (it reverts back to the first 5 or so
columns). In other words you can't navigate to Row Page 3 and Column Page 2.

Any Suggestions would be great.
 

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

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top