ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2017-01-10 02:00:55

qxzhu
Member
Registered: 2016-08-05
Posts: 39

如何禁止拖动单元格

一不小心就会将单元格的数据拖到别处。数据会很乱。如何禁止拖动呢?

Offline

#2 2017-01-10 02:22:36

qxzhu
Member
Registered: 2016-08-05
Posts: 39

Re: 如何禁止拖动单元格

这个也找到了Behavior_DragToMoveCells

Offline

#3 2017-01-10 02:38:09

qxzhu
Member
Registered: 2016-08-05
Posts: 39

Re: 如何禁止拖动单元格

// 摘要:
    //     Workbook Control Settings
    public enum WorkbookSettings
    {
        // 摘要:
        //     None
        None = 0,
        //
        // 摘要:
        //     Default behaivor settings
        Behaivor_Default = 0,
        //
        // 摘要:
        //     Default View Settings
        View_Default = 65536,
        //
        // 摘要:
        //     Determine whether or not to show sheet tab control
        View_ShowSheetTabControl = 65536,
        //
        // 摘要:
        //     Determine whether or not to show horizontal scroll bar
        View_ShowHorScroll = 131072,
        //
        // 摘要:
        //     Determine whether or not to show vertical scroll bar
        View_ShowVerScroll = 262144,
        //
        // 摘要:
        //     Determine whether or not to show horizontal and vertical scroll bars
        View_ShowScrolls = 393216,
        //
        // 摘要:
        //     Default Settings
        Default = 458752,
    }

Offline

#4 2017-01-10 03:23:35

qxzhu
Member
Registered: 2016-08-05
Posts: 39

Re: 如何禁止拖动单元格

Edit_DragSelectionToMoveCells 改成这个了,可以用了。

Offline

Board footer

Powered by FluxBB