Hello, I'm trying to create a grid that allows editing when I click a command column button but only for that row, all other rows should stay read-only to reduce human error. Any ideas?
1 Answer, 1 is accepted
answered on 25 Aug 2011, 08:37 AM
Thank you for writing.
You can achieve the desired behavior by creating a flag which indicates whether edit is possible or not. The flag will be true when the button is clicked and false when the CurrentRow is changed. In order to allow or prevent the editing operation in the CellBeginEdit set the Cancel property from the arguments to the negate flag:
I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>