Hi,
I have noticed that when AutoGenerateColumns="true", a sql_variant field returned as the datasource will not appear in the grid. However, if you create your columns programmatically or in the aspx page (AutoGenerateColumns="false"), and set the DataField property to the sql_variant field name, it works.
Can anyone at Telerik explain why this is, and if there is a workaround to get sql_variant fields to show up as columns when using AutoGenerateColumns?
As of now, my workaround is to cast the sql_variant as another datatype (in my case an INT) in the sql procedure that returns the dataset. However, I believe the radgrid should be able to handle this on its own, just as it handles it if you are not using AutoGenerateColumns, and set a column's DataField property to the sql_variant field.
Thanks
Daniel
I have noticed that when AutoGenerateColumns="true", a sql_variant field returned as the datasource will not appear in the grid. However, if you create your columns programmatically or in the aspx page (AutoGenerateColumns="false"), and set the DataField property to the sql_variant field name, it works.
Can anyone at Telerik explain why this is, and if there is a workaround to get sql_variant fields to show up as columns when using AutoGenerateColumns?
As of now, my workaround is to cast the sql_variant as another datatype (in my case an INT) in the sql procedure that returns the dataset. However, I believe the radgrid should be able to handle this on its own, just as it handles it if you are not using AutoGenerateColumns, and set a column's DataField property to the sql_variant field.
Thanks
Daniel