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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156