Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
problem with column sort on webgrid
posted

I have a web grid which gets its data source from a user generated sql query. When they sort their results in a datagrid, it causes an error when they try to export the grid.  The error is "Object reference not set to an instance of an object" when the webgrid tries to databind();  Why does this err out at this point? Does the webgrid loses its datasource when it is sorted?  The original data bind works fine, it only errs out after a user has sorted the webgrid. I don't understand what casues this error. Please let me know any information you have on this.