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

Parse and format events

1 Answer 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zensell
Top achievements
Rank 1
Zensell asked on 05 May 2010, 01:57 PM
Hi, I have a GridView bound to a DataTable, and I want to bind a CheckBoxColumn of my GridView to an Integer DataColumn of my DataTable. So the checked CheckBox corresponds with '2' in the Integer DataColumn, and the unchecked CheckBox corresponds with '1' in the Integer DataColumn. Is there something like parse and format events for this binding? Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Svett
Telerik team
answered on 10 May 2010, 12:23 PM
Hi Zensell,

Presently, RadGridView doesn't offer this capability. We have already considered this feature and we we plan to provide a new conversion layer which will allow custom formatting and parsing. You can read more about that in this blog post: Flexible data conversion with RadGridView for WinForms vNEXT.

In the meantime, I would recommend using typed DataSets as your data source. You can create a typed data set and then modify the desired property to be of bool type instead of integer. Hence, you can parse true to integer value internally.

Let us know if you have further questions.

All the best,
Svett
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Zensell
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or