save the sql string
I have a GridView whose Datasource is NOT from ObjectDataSource / SqlDataSource. It comes from a DataSet/DataTable.
If AllowSorting / AllowPaging is enabled, I will get an error.
I tried to put the entire DataBind block inside
if (!Page.IsPostBack) { ... }
I still get an error. Anyone?
|