@model IEnumerable<FlexGridData.Sale>

<h1>
    Clipboard Support
</h1>
<p>
    The FlexGrid control has built-in clipboard support.
</p>
<p>
    By default, pressing the Ctrl+C or Ctrl+Insert keys
    copies the current selection to the clipboard.
    Pressing Ctrl+V or Shift+Insert pastes the clipboard
    content into the grid.
</p>
<p>
    You can disable the automatic clipboard feature by setting
    the <b>autoClipboard</b> property to false.
</p>
@Html.C1().CollectionViewService().Id("collectionView").Bind(Model)
@Html.C1().FlexGrid().Id("theGrid").ItemsSourceId("collectionView").ShowAlternatingRows(false).Height(200)

<h2>
    Custom Behaviors
</h2>
<p>
    You can customize the clipboard actions using the
    <b>copying</b>, <b>copied</b>, <b>pasting</b>, <b>pasted</b>,
    <b>pastingCell</b>, and <b>pastedCell</b> events.
</p>
<p>
    For example, when you copy a range from the grid below, it will
    add the column headers to the clipboard content.
</p>
@Html.C1().FlexGrid().Id("theCustomGrid").ItemsSourceId("collectionView").ShowAlternatingRows(false).Height(200)

<h2>
    Smart Pasting
</h2>
<p>
    Note that the FlexGrid implements an Excel-style 'smart pasting'
    feature that replicates the clipboard data when pasting.
    For example, if you select a single cell and press Ctrl+C to
    copy it to the clipboard, then extend the selection and press
    Ctrl+V to paste, the cell will be pasted over the entire
    selection.
</p>