When I drop a new GridControl on my form, it has two columns by default. When I bind a data source to the grid (through the DataSource property, either set from code or bound to a resource entry) that has fields which are incompatible with the two default columns, the application throws an exception (null reference) shortly after startup. Even if AutoPopulateColumns is set to True, the exception is still thrown.
If I remove the two default columns, everything works as expected.
Exception is thrown.
No exception :-)
Obviously the grid can't show anything if the columns don't match the fields and AutoPopulateColumns is False. But under no circumstances should the grid throw an exception.
This issue has been recently fixed. Please update your components to the most recent version - v8.3.4.
Check if Search Engine is able to answer questions faster than I do!
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.