WebGrid in unbound mode throws NullReferenceException in RenderControl

2 replies. Last post: March 24, 2011 6:08 AM by Robert Pehrson
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I am adding an unbound WebGrid into an existing project, and my call to the WebGrid's RenderControl is throwing NullReferenceException.  I have no problem when building the unbound WebGrid in isolation, so I guess that something in the project infrastructure is causing problems but cannot see what this could be.  It is as though the grid is expecting a datasource and then failing because DataSource is null.  Are there properties that are used to signal unbound mode in RenderControl other than the DataSource? 

I note that all data-bound operations should be disabled in unbound mode, and I believe that I've done so, but wonder if an omission here could be the cause of the problem.  If so, what exactly are the operations to be disabled?

All times are GMT -5. The time now is 9:23 AM.
Previous Next