And using script for hidden some button like:
frappe.ui.form.on('Holiday List', {
refresh:function(frm, cdt, cdn){
cur_frm.fields_dict['holidays'].grid.wrapper.find('.grid-remove-rows').hide();
cur_frm.fields_dict['holidays'].grid.wrapper.find('.grid-add-row').hide();
cur_frm.fields_dict['holidays'].grid.wrapper.find('.btn-open-row').hide();
cur_frm.fields_dict['holidays'].grid.wrapper.find('.grid-pagination').hide();
}
});
Thank You!