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

[Solved] Anyway to make the grid read-only when GridEditMode.InCell is used?

0 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ben
Top achievements
Rank 1
ben asked on 13 May 2011, 06:12 PM
Hello there,

I was just wondering if there's a way to prevent the user from editing the grid when GridEditMode.InCell is used.  Basically I have a boolean flag to indicate whether the user has the permission to edit the grid.  If the flag is false I want to disable editing on the grid.  I have no problems hiding the Submit Changes and Cancel buttons but I want to be able to prevent the cells from going into the edit mode when the user clicks on them.  I've tried setting ReadOnly(expression) on each of the columns but it seems to be ignored for the InCell mode.  Any ideas?

Thanks,

Ben
Tags
Grid
Asked by
ben
Top achievements
Rank 1
Share this question
or