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 2016-05-23 06:58:13

drdbkarron
Member
Registered: 2015-05-06
Posts: 29

SelectionMode always returns 'range'

I'm trying to understand how the SelectionMode works.
I am seeing no changes in the variable WorksheetSelectionMode as I manipulate the selection outline.
This is just checking on the selection mode by mousing into the label to see what is going on.


       private void Spreadsheet_SelectionMode_label_MouseEnter ( Object sender , MouseEventArgs e )
            {
            Label l = sender as Label;
            Type t = typeof(WorksheetSelectionMode);
            String SelectionModeString = Enum . GetName (t , myReoGrid . CurrentWorksheet . SelectionMode );
            l . Content = String.Format( "{0}", SelectionModeString );
            }

I'm getting 'range' as the selection mode and have not seen any other modes.

I'm using 1.2.3.0

Offline

#2 2016-05-23 12:00:56

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: SelectionMode always returns 'range'

SelectionMode specifies how the range can be selected by user.
https://reogrid.net/document/selection/

Maybe you want to use the SelectionRangeChanged event?

Offline

#3 2016-05-23 12:44:24

drdbkarron
Member
Registered: 2015-05-06
Posts: 29

Re: SelectionMode always returns 'range'

i have that set and it is not firing as expected.

Offline

Board footer

Powered by FluxBB