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

Possible Bug: Setting IsReadonly for a Column not working as expected

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge Gonzalez
Top achievements
Rank 1
Jorge Gonzalez asked on 28 Jan 2010, 04:19 PM
Hello,
    I set the IsReadonly property of the grid to true. When I than try to set a column to writeable (gridname.Columns[0].IsReadOnly = false) it stays protected.
To get around this I set the grid's IsReadOnly propery to false and than protect certain columns by executing 
gridname.Columns[<Position of column to protect>].IsReadOnly = true

It would make more sense to allow the programmer to override the protection of the entire grid.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 29 Jan 2010, 02:55 PM
Hello Jorge,

Indeed if you set RadGridView.IsReadOnly=true this overrides GridViewDataColumn.IsReadOnly property. Your workaround is the right way to achieve such behavior.

All the best,
Nedyalko Nikolov
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
Jorge Gonzalez
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or