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

[Solved] How to Access Other Cells in CellEditEnded

1 Answer 190 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.
Chris Haas
Top achievements
Rank 1
Chris Haas asked on 30 Oct 2010, 06:16 PM
CellEditEnded gives me accesss to the value of the cell being edited, but I also would like to access other cells of the same row.
I am required to enable a Save button only after all required cells have data.
I do not see anything on GridViewCellEditEndedEventArgs which gives me access to other cells in the row.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 01 Nov 2010, 09:42 AM
Hello Chris Haas,

Basically, you may get the entire row with the help of the ParentOfType extension method:

void clubsGrid_CellEditEnded(object sender, Telerik.Windows.Controls.GridViewCellEditEndedEventArgs e)
{
    var row = (e.Cell as GridViewCell).ParentOfType<GridViewRow>();
}

However, you may also use the RowEditEnded event of the grid that will enable you to work directly with the EditedItem and check if all of the necessary values are entered.
 

Best wishes,
Maya
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
Chris Haas
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or