■ GridDragDropManager 엘리먼트 사용하기

----------------------------------------------------------------------------------------------------

<Grid

    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"

    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity">

    <dxg:GridControl x:Name="gridControl"

        AllowLiveDataShaping="True"

        SelectionMode="Row">

        <dxg:GridControl.Columns>

            <dxg:GridColumn FieldName="ID"         ReadOnly="True" />

            <dxg:GridColumn FieldName="Name"       ReadOnly="True" />

            <dxg:GridColumn FieldName="Department" ReadOnly="True" />

            <dxg:GridColumn FieldName="Position"   ReadOnly="True" />

        </dxg:GridControl.Columns>

        <dxg:GridControl.View>

            <dxg:TableView

                ShowGroupedColumns="True"

                EditorShowMode="MouseUpFocused" />

        </dxg:GridControl.View>

        <i:Interaction.Behaviors>

            <dxg:GridDragDropManager

                AllowDrag="True"

                AllowDrop="True" />

        </i:Interaction.Behaviors>

    </dxg:GridControl>

</Grid>

----------------------------------------------------------------------------------------------------

※ DevExpress에서 제공하는 System.Windows.Interactivity.dll을 참조한다.

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요