public virtual List<OLVColumn> GetFilteredColumns(View view)
{
// For both detail and tile view, the first column must be included. Normally, we would
// use the ColumnHeader.Index property, but if the header is not currently part of a ListView
// that property returns -1. So, we track the index of
// the column header, and always include the first header.
int index = 0;
return this.AllColumns.FindAll(delegate(OLVColumn x) {
return (index++ == 0) || x.IsVisible;
});
}