Esempio n. 1
0
 public HtmlViewCellArrangeInfo GetArrangeInfo(GridViewColumn column)
 {
     if (this.arrangeInfos.ContainsKey(column.GetHashCode()))
     {
         return(this.arrangeInfos[column.GetHashCode()]);
     }
     return((HtmlViewCellArrangeInfo)null);
 }
Esempio n. 2
0
        private GridViewCellInfo GetCellInfo(GridViewColumn column)
        {
            if (this.savedCells != null && this.savedCells.ContainsKey(column.GetHashCode()))
            {
                return(this.savedCells[column.GetHashCode()]);
            }
            if (!(column is GridViewHyperlinkColumn))
            {
                return(new GridViewCellInfo(this.rowInfo, column, this));
            }
            GridViewHyperlinkCellInfo hyperlinkCellInfo = new GridViewHyperlinkCellInfo(this.rowInfo, column, this);

            hyperlinkCellInfo.PersistCellInfo();
            return((GridViewCellInfo)hyperlinkCellInfo);
        }
Esempio n. 3
0
        public virtual TableViewCellArrangeInfo GetArrangeInfo(
            GridViewColumn column)
        {
            TableViewCellArrangeInfo viewCellArrangeInfo;

            this.arrangeInfos.TryGetValue(column.GetHashCode(), out viewCellArrangeInfo);
            return(viewCellArrangeInfo);
        }
Esempio n. 4
0
        protected virtual TableViewCellArrangeInfo InitColumn(
            GridViewColumn column)
        {
            TableViewCellArrangeInfo viewCellArrangeInfo = new TableViewCellArrangeInfo(column);

            this.arrangeInfos[column.GetHashCode()] = viewCellArrangeInfo;
            switch (column.PinPosition)
            {
            case PinnedColumnPosition.Left:
                this.leftPinnedColumns.Add(viewCellArrangeInfo);
                break;

            case PinnedColumnPosition.Right:
                this.rightPinnedColumns.Add(viewCellArrangeInfo);
                break;

            case PinnedColumnPosition.None:
                this.scrollableColumns.Add(viewCellArrangeInfo);
                break;
            }
            return(viewCellArrangeInfo);
        }
 private string GetHashCodeString(GridViewRowInfo row, GridViewColumn column)
 {
     return(row.GetHashCode().ToString() + column.GetHashCode().ToString());
 }