AutoGenerateColumns="False" Causes Empty RadGrid on Databind
I have the following RadGrid that, if AutoGenerateColumns="True" then the grid will bind with the datasource and show the data, but if set to false will not bind and will show the NoRecordsTemplete value, even though the datatable has rows. What causes this, and how can I fix it?
Oh, and the date does not get formatted, it keeps the time part, which I'd like to get rid of.
I'm also facing the same problem, please let me know why it's happening.
Please reply asap.
If you set the AutoGenerateColumns property to false and you do not have manually defined columns there will be no columns in RadGrid. Since there are no columns there will be no records because records are cells of given columns. Since there are no rows in the Grid the NoRecordsToDisplay message will be shown.
How do you expect the Grid to be shown when there are no columns?