BrightIdeasSoftware.ObjectListView.GetFirstNonNullValue C# (CSharp) Method

GetFirstNonNullValue() private method

Get the first non-null value of the given column. At most 1000 rows will be considered.
private GetFirstNonNullValue ( OLVColumn column ) : object
column OLVColumn
return object
        internal object GetFirstNonNullValue(OLVColumn column)
        {
            for (int i = 0; i < Math.Min(this.GetItemCount(), 1000); i++) {
                object value = column.GetValue(this.GetModelObject(i));
                if (value != null)
                    return value;
            }
            return null;
        }
ObjectListView