Reputation: 84
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
Reputation: 31249
I think you should assign the dataset
to the grid. Like this:
grdSat.DataSource = dset;
grdSat.DataBind();
Upvotes: 1