Sorting and Paging in DATAGRID
Hi,
For Paging you need to set the AllowPaging property of datagrid, and for sorting you need the AllowSorting property of datagrid. You can also set the page style to display the paging in different number of styles like <> or in page number etc. Only setting the allowpaging property will not complete your task for paging. For make it running you need to write a single line of code in the code behind file on the datagrid's PageIndexChanged event.
DataGrid1.CurrentPageIndex =e.NewPageIndex this will make it working.
Cheers,
Amit
|