BrightIdeasSoftware.ObjectListView.GetCellToolTip C# (CSharp) Method

GetCellToolTip() public method

Return the tooltip that should be shown when the mouse is hovered over the given cell
public GetCellToolTip ( int columnIndex, int rowIndex ) : String
columnIndex int The column index whose tool tip is to be fetched
rowIndex int The row index whose tool tip is to be fetched
return String
        public virtual String GetCellToolTip(int columnIndex, int rowIndex)
        {
            if (this.CellToolTipGetter != null)
                return this.CellToolTipGetter(this.GetColumn(columnIndex), this.GetModelObject(rowIndex));

            // Show the URL in the tooltip if it's different to the text
            if (columnIndex >= 0) {
                OLVListSubItem subItem = this.GetSubItem(rowIndex, columnIndex);
                if (subItem != null && !String.IsNullOrEmpty(subItem.Url) && subItem.Url != subItem.Text &&
                    this.HotCellHitLocation == HitTestLocation.Text)
                    return subItem.Url;
            }

            return null;
        }
ObjectListView