SourceGrid.Cells.Views.ColumnHeader.PrepareVisualElementSortIndicator C# (CSharp) Метод

PrepareVisualElementSortIndicator() защищенный Метод

protected PrepareVisualElementSortIndicator ( CellContext context ) : void
context CellContext
Результат void
        protected virtual void PrepareVisualElementSortIndicator(CellContext context)
        {
            Models.ISortableHeader sortModel = (Models.ISortableHeader)context.Cell.Model.FindModel(typeof(Models.ISortableHeader));
            if (sortModel != null)
            {
                Models.SortStatus status = sortModel.GetSortStatus(context);
                ElementSort.SortStyle = status.Style;
            }
            else
                ElementSort.SortStyle = DevAge.Drawing.HeaderSortStyle.None;
        }