Hi Experts,
how to disable the delete key from key board,but standard insert button and delete button can work.
Any other ways can help me?
The following code:result the insert button and delete button disappear .
data: ls_layout type LVC_S_LAYO.
ls_layout-NO_ROWINS ='X'.callmethod g_grid->SET_FRONTEND_LAYOUT
exporting
is_layout = ls_layout.
Another way is:the delete button exits but not work
Declare a field in your itab called CELLTAB with TYPE LVC_T_STYL.
Add this field in your layout structure, field STYLEFNAME.
GS_LAYOUT-STYLEFNAME = 'CELLTAB'.
Loop over your itab and fill the deep itab CELLTAB. Set field celltab-style to CL_GUI_ALV_GRID=>MC_STYLE_NO_DELETE_ROW.