Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
XamDataGrid drag and drop multiple records
posted

Hi,

What I want to do is to allow users to select multiple records on XamDataGrid (using ctrl + click) and then drag selected records out of the grid. However, when I set AllowEdit to False and CellClickAction to SelectRecord drag and drop stops working. Instead of dragging it selects cells. With AllowEdit and CellClickAction having their default values dragging works but I don't want allow users to edit data.

Can anybody help me solve this problem? I'm using Drag and Drop framework. Here is my sample code:

<igDP:XamDataGrid Name="xamDataGrid1" DataSource="{Binding}">
    <igDP:XamDataGrid.FieldLayoutSettings>
        <igDP:FieldLayoutSettings AutoGenerateFields="True" />
    </igDP:XamDataGrid.FieldLayoutSettings>
    <igDP:XamDataGrid.FieldSettings>
        <igDP:FieldSettings AllowEdit="False" CellClickAction="SelectRecord" />
    </igDP:XamDataGrid.FieldSettings>
    <ig:DragDropManager.DragSource>
        <ig:DragSource
            IsDraggable="True" DragChannels="ChannelA">
        </ig:DragSource>
    </ig:DragDropManager.DragSource>
</igDP:XamDataGrid>

Thanks

Bart