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

Problem With Checkbox

1 Answer 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 24 May 2017, 11:27 PM

I have Gridview with checkbox column and data bound to datasource,

When i try to change checkbox status, it gives me Data Exception: "Column 'Ex' is read only"

how to make this event firing without commiting to database

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 May 2017, 01:59 PM
Hello Ahmed, 

Thank you for writing.  

When you bind the grid to a collection that contains a read-only property, the respective column that is generated is expected to be read-only as well. Thus, you won't encounter this error message. If you add the column programmatically after setting the RadGridView.DataSource property, make sure that the column's ReadOnly property is set to true.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or