Delete

Iam using the following code to delete a row using the delete key



mygrid._key_events.k46_0_0=function()

{

if(!this.editor && this.row) this.deleteRow(this.row.idd);

}



This works fine but is there a way to add a condition saying that if the grid is in edit mode then the delete key should work normally if not then use it to delete a row.



Change your code as

mygrid._key_events.k46_0_0=function()
{
if(!this.editor && this.row) this.deleteRow(this.row.idd);
else return false;
}