Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
Need a sample of working with Paging and Dataset
posted

Hi , i bind a datatable to my webdatagrid in the load event i write
WebDataGrid1.DataSource = dt_User
WebDataGrid1.DataBind()

i got the data from a sql server .
i have enabled paging
<ig:Paging PageSize="15" PagerAppearance="Bottom" />
but only the first page will be shown.

but how would the paging work ? can anyone provide me a working sample for webdatagrid / paging / custom dataset

in all samples i found only  that you bind the grid to a accessdatasource

 

<asp:AccessDataSource ID="DefaultDataSource" runat="server" DataFile="~/App_Data/Nwind.mdb"

 

 

 

SelectCommand

="SELECT [CustomerID], [CompanyName], [ContactName], [Address], [City], [Region], [PostalCode], [Country], [Phone] FROM [Customers]">

 

 

</asp:AccessDataSource

>