Paging and Scrolling in a DataGrid Control

M

M B Jiang

I am trying to get a datagrid to use paging and also have the ability
to scroll at the same time. For example, I set paging to display 10
rows in a datagrid at a time. If I increase the number to more than 15
rows in a datagrid, I want a datagrid to display 15 records with a
scroll bar. At the same time paging should be taking place. Would
anyone know how to get both paging and scrolling to function together?

Thanks,
MB
 
A

Alvin Bruney

You can wrap the datagrid in a div tag of a specific size. Set the overflow
to auto in the styles attributes and it will produce scrollbars if the grid
grows beyond that dimention.

hth
 

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,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top