boolean public static \Bitrix\Main\Grid\Context::isInternalRequest( );
Static method returns true, when query is internal (from the grid). Otherwise, returns false
true
false
No parameters