Apr 1, 2010

cannot find any bindable properties in an item from the datasource

You get this error when you are using a telerik rad control in your custom project.
The error reads like

cannot find any bindable properties in an item from the datasource

The reason is that if the datasource is probably null (like a dataset which is not initialized) the rad controls will show this error when the page loads. The workaround is that if the source is null or without data, check that condition and bind the data source with empty object as shown below

RadGrid1.DataSource = new Object[0];

3 comments:

  1. You'll also get this error if the properties on the class you use for your DataSource are not marked 'public'.

    ReplyDelete
  2. Thank you previous anonymous poster. Properties not being public was my issue as well.

    ReplyDelete