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

change cell readonly setting

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin Blanton
Top achievements
Rank 1
Kevin Blanton asked on 29 Mar 2010, 03:34 PM
We are using the GirdView control to allow users to enter invoice charges.  The first col in the grid is a combo that allows the user the select a charge code.  Based on the selected code certain other items in the current row need to be set to readonly or disabled.

For example, code ABC may be set up as a revenue code only.  This would allow the user to enter a rate and basis in the revenue columns, but the rate and basis for the cost columns would need to be locked or set to disabled.

Is it possible to do this with the GridView control.

Thanks,

Kevin

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 29 Mar 2010, 04:17 PM
Hi Kevin Blanton,

You can achieve this using BeginningEdit event of RadGridView. You can use the passed event arguments to check the state of your objects (e.Row.DataContext) and decide whether or not to cancel the editing (e.Cancel = true).

Hope this helps,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Kevin Blanton
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or