Is there a way to obtain the cell in the CellValidated event?
I want to check if cell.ContainsErrors, but I don't seem to be able to get the Cell.
grid1.rows(e.rowIndex).Cells(e.columnIndex) provides the CellInfo, not the cell itself.
Any tips would be appreciated.
Thanks!
I want to check if cell.ContainsErrors, but I don't seem to be able to get the Cell.
grid1.rows(e.rowIndex).Cells(e.columnIndex) provides the CellInfo, not the cell itself.
Any tips would be appreciated.
Thanks!
4 Answers, 1 is accepted
0
Accepted

Emanuel Varga
Top achievements
Rank 1
answered on 19 Oct 2010, 08:25 AM
Hello Deborah,
In the CellValidated event, (I'm not 100%) but i think it will always be the CurrentCell, the one that is validated, so you can use:
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
In the CellValidated event, (I'm not 100%) but i think it will always be the CurrentCell, the one that is validated, so you can use:
void
radGridView1_CellValidated(
object
sender, CellValidatedEventArgs e)
{
var grid = sender
as
RadGridView;
var cellElement = grid.CurrentCell;
MessageBox.Show(cellElement.Text);
}
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
0

Emanuel Varga
Top achievements
Rank 1
answered on 20 Oct 2010, 11:20 PM
Hello again Deborah,
Just wanted to follow up on this question and ask you if this problem has been solved or if you need any more help on this one.
Best Regards,
Emanuel Varga
Just wanted to follow up on this question and ask you if this problem has been solved or if you need any more help on this one.
Best Regards,
Emanuel Varga
0

Deborah
Top achievements
Rank 1
answered on 21 Oct 2010, 12:23 AM
I don't think I ever tried this since we went a different way in a different thread.
Thanks for following up.
I hate to mark that as "answer' because I never tried it to see if it would really work. And you did not sound sure either ...
Thanks for following up.
I hate to mark that as "answer' because I never tried it to see if it would really work. And you did not sound sure either ...
0

Emanuel Varga
Top achievements
Rank 1
answered on 21 Oct 2010, 12:29 AM
Hello Deborah,
I was curios also, I've tried a lot of different things and the current cell was always the one validated, and in a way it's logical because you can just validate the last cell that you've changed.
Regarding the mark as answer, please do not mark a question as the answer just because me, or any other user / admin says so, mark it as the answer if you have confirmed that it is working as it should, so that other people could find their answers faster, and will be more productive using Telerik.
Best Regards,
Emanuel Varga
I was curios also, I've tried a lot of different things and the current cell was always the one validated, and in a way it's logical because you can just validate the last cell that you've changed.
Regarding the mark as answer, please do not mark a question as the answer just because me, or any other user / admin says so, mark it as the answer if you have confirmed that it is working as it should, so that other people could find their answers faster, and will be more productive using Telerik.
Best Regards,
Emanuel Varga