In a grid - subgrid scenario such as illustrated in the cgDevTools 2 demo, it would be helpful if the OnSubGridBeforExpand event contained a Cancel parameter which when set to True would prevent expansion of the subgrid.
A very simple example for the use of this parameter would be when subgrid records were only being viewed (i.e. no record insertion in the subgrid was allowed) and there were no subgrid records present. In this scenario, the subgrid expansion could be programmatically prevented by setting Cancel := True.
For this scenario I currently check the record count of the subgrid and; if there are no records, I execute a IWCGJQDialogEx which contains an OK button. The OnClick event of this button programmatically closes the subgrid.
Staying with this example, it would be useful if the user could be notified when a subgrid contained no record by simply looking at the parent grid. For example, if there were no subgrid records, the color of the "+" in the expand column could be set to a different color such as red.
TIA
John