stillLearning
stillLearning

Reputation: 84

System.NotSupportedException: The data source does not support server-side data paging.?

This is my code:

query = "SELECT DISTINCT TO_CHAR(date,'DD-Mon-YYYY')date, idNum, name FROM customer  ORDER BY date, idNum, name";
        dset = dbCon.ExecuteDataSet(query);
        grdSat.DataSource = query;
        grdSat.DataBind();

I got an error at here :

grdSat.DataBind();

and when I debug the coding, this is what I got :

NotSupportedException was unhandled by user code

Upvotes: 1

Views: 1037

Answers (1)

Arion
Arion

Reputation: 31249

I think you should assign the dataset to the grid. Like this:

grdSat.DataSource = dset;
grdSat.DataBind();

Upvotes: 1

Related Questions