how to Stop KeyDown client side Event for stop delete key press to delete a row in Grid.
Hello,
You can use the KeyDownHandler of ClientSideEvents tag and disable “Delete” key.
Please take a look at the code below:<ClientSideEvents KeyDownHandler="Action" /> <script type="text/javascript"> function Action(gridID, cellID, key) { if (key == 46) { return true; } } </script>
Hope this helps.
So this stops a "Delete" action on the cell from deleting the whole row, but if I still want the cell contents to delete?
So a cell is highlighted, you press deleted, its contents disappear, but the row does not.....surely this would be standard behaviour?
Thanks
CopyPasteGrid1.DisplayLayout.AllowDeleteDefault = AllowDelete.Yes;
this stops the use of deleting completely? how do i allow the use of the delete on one cell, but it does not deleted the whole column.
thanks again