Exemple #1
0
        /// <summary>
        /// Sets the bind grid flag.
        /// </summary>
        /// <param name="gridId">The grid id.</param>
        /// <param name="value">if set to <c>true</c> [value].</param>
        public static void SetBindGridFlag(string gridId, bool value)
        {
            string key = String.Concat(NeedToBindGridKey, "_", gridId);

            if (value)
            {
                CommerceHelper.SetContextParameter(key, value);
            }
            else // remove from context
            {
                CommerceHelper.RemoveContextParameter(key);
            }
        }
Exemple #2
0
        /// <summary>
        /// Sets the bind grid flag.
        /// </summary>
        /// <param name="gridId">The grid id.</param>
        public static void SetBindGridFlag(string gridId)
        {
            string key = String.Concat(NeedToBindGridKey, "_", gridId);

            CommerceHelper.SetContextParameter(key, true);
        }