protected virtual void OnCustomSetSorting(CustomSetSortingEventArgs args)
 {
     if (CustomSetSorting != null)
     {
         CustomSetSorting(this, args);
     }
 }
        protected void SetSorting(SortProperty[] sortProperty, object dataSource)
        {
            CustomSetSortingEventArgs args = new CustomSetSortingEventArgs(sortProperty, dataSource);

            OnCustomSetSorting(args);
            if (!args.Handled)
            {
                ((ISupportSorting)dataSource).Sorting.Clear();
                if (sortProperty != null)
                {
                    ((ISupportSorting)dataSource).Sorting.AddRange(sortProperty);
                }
            }
        }