public virtual void CopySelectionToClipboard()
{
IList selection = this.SelectedObjects;
if (selection.Count == 0)
return;
// Use the DragSource object to create the data object, if so configured.
// This relies on the assumption that DragSource will handle the selected objects only.
// It is legal for StartDrag to return null.
object data = null;
if (this.CopySelectionOnControlCUsesDragSource && this.DragSource != null)
data = this.DragSource.StartDrag(this, MouseButtons.Left, this.ModelToItem(selection[0]));
Clipboard.SetDataObject(data ?? new OLVDataObject(this, selection));
}