public Rectangle CalculateCellEditorBounds(OLVListItem item, int subItemIndex, Size preferredSize)
{
Rectangle r;
if (this.View == View.Details)
r = item.GetSubItemBounds(subItemIndex);
else
r = this.GetItemRect(item.Index, ItemBoundsPortion.Label);
if (this.OwnerDraw)
return CalculateCellEditorBoundsOwnerDrawn(item, subItemIndex, r, preferredSize);
return CalculateCellEditorBoundsStandard(item, subItemIndex, r, preferredSize);
}