This is a migrated thread and some comments may be shown as answers.

grid paging

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 17 Oct 2011, 05:47 AM
initially i bind grid using this code

<asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:MyDB %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"
            runat="server"></asp:SqlDataSource>


in this paging works properly...

when i bing grid datas like this

RadGrid1.DataSource = DT
RadGrid1.DataBind()
when i click the 2nd page button grid shows like this(Attached below)

give me a solution

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Oct 2011, 05:55 AM
Hello Johnny,

In order to implement advanced features in RadGrid like paging, sorting, grouping etc, make sure that you are using Advanced data binding using NeedDataSource event. Check the following help documentation which explains more about this.
Advanced Data-binding (using NeedDataSource event).

Thanks,
Shinu.
Tags
Grid
Asked by
Johnny
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or