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

CheckboxColumn in Oracle

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kyri
Top achievements
Rank 2
Kyri asked on 20 Oct 2009, 11:33 PM
Hi, i have searched the forums and i havent been able to find an answer to this simple question. Our DB server is Oracle and hence it doesnt have a boolean / bit type in it. Any boolean columns are defined as char(1) and the values are set to Y or N (this is stock standard oracle practice).
I want to display data in the radgridview and the most natural column type for the user to use to change values in the Y N column is the checkbox column. Is there any way to bind the column so that if the db value is Y, the check box is checked and if the value is N it is unchecked (and conversly when you check and uncheck the checkbox, the data in the underlying datasource is updated to Y or N),

In the standard .net datagridview, the column has properties called TrueValue  and FalseValue which can be bound as followed to achieve what i am after
CheckBoxColumn.TrueValue = "Y";
CheckBoxColumn.FalseValue = "N";
What is the telerik equivalent?

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 26 Oct 2009, 07:17 AM
Hello Kyri,

Thank you for writing.

Although, RadGridView does not support binding CheckBoxColumn to char data types, you can implement such a scenario using a custom cell element. Please, find a simple example application that demonstrates this approach as an attachment to this message.

Do not hesitate to contact me again if you have any additional questions.

Kind regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Kyri
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Share this question
or