I am working on project which has hundred thousands of records coming from database. I have to show this in DevExpress grid.
Well default behavior of grid is to load all records at once and it applies pagination on client end.
The problem i am having is that the page takes lots of time while loading. To stop this i am going to use server side pagination at devExpress grid. But I am getting error : "The data source does not support server-side data paging
"
My grid is "gvList" and i am setting its property as :
gvList.DataSourceForceStandardPaging = True
And then
Dim cmd As New SqlCommand
Dim ds As New DataSet
Dim da As SqlDataAdapter
Dim dbConn As New SqlConnection(conStr)
cmd.CommandType = CommandType.Text
cmd.CommandText = strSQL 'contains SQL string
cmd.Connection = dbConn 'contains connection object
da = New SqlDataAdapter(cmd)
da.Fill(ds, tbl)
gvList.DataSource = ds
gvList.DataBind()
Can any one please tell me where i am going wrong ?
Thanks.. Anjum Dhamial