SourceGrid.Cells.Views.ColumnHeader.PrepareVisualElementSortIndicator C# (CSharp) Method

PrepareVisualElementSortIndicator() protected method

protected PrepareVisualElementSortIndicator ( CellContext context ) : void
context CellContext
return 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;
        }