BrightIdeasSoftware.ObjectListView.GetColumn C# (CSharp) Method

GetColumn() public method

Return the column at the given index
public GetColumn ( int index ) : OLVColumn
index int Index of the column to be returned
return OLVColumn
        public virtual OLVColumn GetColumn(int index)
        {
            return (OLVColumn)this.Columns[index];
        }

Same methods

ObjectListView::GetColumn ( string name ) : OLVColumn

Usage Example

        public static void TimedFilter(ObjectListView olv, string txt, TextMatchFilter.MatchKind matchKind = TextMatchFilter.MatchKind.Text)
        {
            TextMatchFilter filter = null;
            if (!String.IsNullOrEmpty(txt))
                filter = new TextMatchFilter(olv, txt, matchKind);

            // Setup a default renderer to draw the filter matches
            olv.DefaultRenderer = filter == null ? null : new HighlightTextRenderer(filter);

            // Some lists have renderers already installed
            var highlightingRenderer = olv.GetColumn(0).Renderer as HighlightTextRenderer;
            if (highlightingRenderer != null)
                highlightingRenderer.Filter = filter;

            olv.ModelFilter = filter;
        }
All Usage Examples Of BrightIdeasSoftware.ObjectListView::GetColumn
ObjectListView