Exemple #1
0
        private void PerformSort(DataView view, String expression, String direction)
        {
            try
            {
                if (!String.IsNullOrEmpty(expression))
                {
                    GridSort e = new GridSort(expression, direction);

                    view.Sort = String.Format("{0} {1}", expression, direction);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        private void PerformSort(DataView view, String expression, String direction)
        {
            try
            {
                if (expression.IsNotNullOrEmpty())
                {
                    if (expression.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Length != 1)
                    {
                        direction = String.Empty;
                    }

                    GridSort e = new GridSort(expression, direction);

                    view.Sort = String.Format("{0} {1}", expression, direction);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        private void PerformSort(DataView view, String expression, String direction)
        {
            try
            {
                if (expression.IsNotNullOrEmpty())
                {
                    if (expression.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Length != 1)
                        direction = String.Empty;

                    GridSort e = new GridSort(expression, direction);

                    view.Sort = String.Format("{0} {1}", expression, direction);

                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        private void PerformSort(DataView view, String expression, String direction)
        {
            try
            {
                if (!String.IsNullOrEmpty(expression))
                {
                    GridSort e = new GridSort(expression, direction);

                    view.Sort = String.Format("{0} {1}", expression, direction);

                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }