Just adding Igespee to the answer, if you use "Search" in a column that has no groups and fails, you also need to change the following two lines. Keep in mind that additional changes are probably necessary (for example, the GetLastItemInDisplayOrder function), but this will at least prevent it from crashing each time you press a key.
@@ - 3948.7 +3948.7 @@ namespace BrightIdeasSoftware
/// <param name="n"></param> /// <returns></returns> public virtual OLVListItem GetNthItemInDisplayOrder(int n) { -- if (!this.ShowGroups) ++ if (!this.ShowGroups || this.Groups.Count==0) return this.GetItem(n); foreach (ListViewGroup group in this.Groups) {
@@ - 3969.7 +3969.7 @@ namespace BrightIdeasSoftware
/// <param name="itemIndex"></param> /// <returns></returns> public virtual int GetDisplayOrderOfItemIndex(int itemIndex) { -- if (!this.ShowGroups) ++ if (!this.ShowGroups || this.Groups.Count == 0) return itemIndex;
source share