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

Cannot edit

2 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jc mag
Top achievements
Rank 1
jc mag asked on 08 Oct 2009, 05:33 PM
I have a simple GridView with editable columns, and sometimes (I can't reproduce it every time) after a "refresh" of the data (=> when I set the DataSource again) I can't edit values, for example I can't check checkboxes, and I even can't select rows...
Do you have an idea about what could prevent the grid to enter edit mode?

2 Answers, 1 is accepted

Sort by
0
Mohamed Nazmi
Top achievements
Rank 1
answered on 08 Oct 2009, 07:21 PM
Greetings
I am a new user for radgridview
but i just met the same problem when I used a query that gets (select new) fields
always getting the fields read only and can't be edited
so instead I used the full source then programatically removed the columns i don't need
and that worked although slower
anyway
I think it still need to be revised especially while using with LTS
0
Julian Benkov
Telerik team
answered on 14 Oct 2009, 09:32 AM
Hi jc mag,

This behavior depends of your DataSource and its data fields -- if your fields are read-only then your columns are read-only. Please use the Update method of MasterGridViewTemplate if your data source is IList. When the used DataSource implements IBindingList like DataTable and etc. the refresh operation will be automatically handled by RadGridView.

Greetings,
Julian Benkov
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
jc mag
Top achievements
Rank 1
Answers by
Mohamed Nazmi
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or