DisplayOption is used to colourize rows in a gird based on field value the issue is that when a row is selected its colour is missed , how can I keep the colour of the selected record ? the grid property highlight active is marked as no
Try if this works for you, This worked for me.
public void displayOption(Common _record, FormRowDisplayOption _options) { super(_record, _options); RequestHelper::modifyGridcolorOnStatus(_record, _options); } Class RequestHelper - public static void modifyGridcolorOnStatus(Common _record, FormRowDisplayOption _options) { RequestTable requestTable = _record as RequestTable; _options.backColor(RequestHelper::setRequestStatusColor(requestTable)); } public static CCColor setRequestStatusColor(RequestTable _requestTable) { CCColor color = WinApi::RGB2int(255,255,255); if (requestTable.staus == XXX) { color = asuInventRequestStatusColor.Color; } return Color; }
Is it possible to disable row selection in gird ?
Hi Maram,
A selected record will always have the color as per selection (style). You can't override this behavior.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,239
André Arnaud de Cal... 903 Super User 2025 Season 2
Sohaib Cheema 604 User Group Leader