3 Answers, 1 is accepted
You can create a simple method like this one:
.. and then use it like this:
Unfortunately you will only be able to use this method for cells and rows that are visible.
the Telerik team
I have this event handler which is called when on event RowEditEnded="radGridView_EditComments"
Here is what I have in the method
public void radGridView_EditComments(object sender, GridViewRowEditEndedEventArgs e)
if (e.EditAction == GridViewEditAction.Cancel)
if (e.EditOperationType == GridViewEditOperationType.Edit)
clsDiagnosticsMessageList obj = new clsDiagnosticsMessageList();
clsDiagnosticsMessageList obj1 = e.Row.Cells.Value;
The problem is that i cannot access the cell value using the above line which is in bold and I am getting the following error:
GridViewCellBase' does not contain a definition for 'Value' and no accessible extension method 'Value' accepting a first argument of type 'GridViewCellBase' could be found (are you missing a using directive or an assembly reference?
Can you tell me what is the correct way to extract a particular cell value?
Thank you for the provided code snippet.
The cells collection property of the e.Row is an IList of GridViewBaseCell which does not contain such property (Value). You need to cast the e.Row.Cells to GridViewCell and then you can use the Value property to get the content of a specific cell.
Give this approach a try and let me know if further questions arise.