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

[Solved] updating related cell values

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jax
Top achievements
Rank 2
Jax asked on 21 Oct 2009, 11:43 AM
Depending on what the cell value is of cell "A", I need to update the cell editTemplate properties (ex. readonly) of other cells.

What's the best way to go about this?

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 23 Oct 2009, 09:12 AM
Hello Jax,

You can hook for RadGridView.BeginningEdit event and use code like this:

void radGridView_BeginningEdit(object sender, GridViewBeginningEditRoutedEventArgs e)
        {
            // make some business logic checks
            // e.Row.DataContext is a real business object which is about to be edited
            e.Cancel // will cancel further editing
        }

Hope this helps.

Greetings,
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
Jax
Top achievements
Rank 2
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or