This is a migrated thread and some comments may be shown as answers.

Cell level data types

1 Answer 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott Michetti
Top achievements
Rank 1
Scott Michetti asked on 11 Mar 2013, 05:17 PM
Hello, is it possible using MVVM to have different data types in a single column? I would want one cell to be string, another to be numeric, and another to be a dropdown etc. Or possibly use 1 datatype(String), but have different editors in each cell. Your new spreadsheet control may be a better solution, but it may be some time before it is done, and if this can work using the GridView, I'd use that.

Thanks
Scott

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 12 Mar 2013, 01:56 AM
Hi,

Unfortunately such a requirements goes far beyond RadGridView's core concepts. Basically, RadGridView is designed to process all of the column cells' values as instances of a same type. You can have strings, numerics etc simultaneously as they all derive from System.Object, but this will disable all of the data-shaping operations (sorting, grouping etc). You will also need some custom type-casting mechanism. I would personally try RadSpreadSheet instead.

Kind regards,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Scott Michetti
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or