Enable/ Disabled Grid Button from PeopleSoft PeopleCode


/* 
Grid + and - buttons Example


InsertEnabled only work with RowSet


DeleteEnabled work with RowSet and Row*/


Local Rowset &rs;


&rs = GetLevel0()(1).GetRowset(Scroll.scroll_record);



&rs.InsertEnabled = False;


For &i = 1  To &rs.ActiveRowCount
/* You may put condition if you want to disabled delete from specific row*/
     &rs.GetRow(&i).DeleteEnabled = false;
End-For;