ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum no longer accepts new user registrations, please report your question, problem and feedback to the issue page of ReoGrid on Github. Thanks for your cooperation.

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

#1 2016-03-03 12:23:19

amvandenberg
Member
Registered: 2016-02-09
Posts: 10

Ungrouping disables right-click context menu for columnhead

Hi,

I've found a small bug in versions 1.1.0-1.2.0:

How to repeat:
1. Open the ReoGrid Editor
2. Right-click on a column header
3. Click "Group".
4. Right-click on the same column header
A:
5. Click "Ungroup". Groupheader disappears
6. Try to right-click on the column headers: context menu doesn't pop up.

or try B:
5. Click "Ungroup All"
Note that nothing seems to happen.
7. Enter a value in a cell and press enter
Note that now the Groupheader is gone.
8. Try to right-click on the column headers: context menu doesn't pop up.

Offline

#2 2016-03-03 12:27:07

amvandenberg
Member
Registered: 2016-02-09
Posts: 10

Re: Ungrouping disables right-click context menu for columnhead

If you then try to do a "Freeze to Cell", you'll get the following exception:

System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
   bij ek.j(f7 A_0)
   bij en.dx(Int32 A_0, Int32 A_1, FreezeArea A_2)
   bij unvell.ReoGrid.Worksheet.FreezeToCell(Int32 row, Int32 col, FreezeArea area)
   bij unvell.ReoGrid.Worksheet.FreezeToCell(CellPosition pos, FreezeArea area)
   bij unvell.ReoGrid.Editor.ReoGridEditor.FreezeToEdge(FreezeArea freezePos)
   bij System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bij System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

If you first freeze to a cell and then group, you get:

System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
   bij en.dn()
   bij unvell.ReoGrid.Worksheet.AddOutline(RowOrColumn flag, Int32 start, Int32 count)
   bij unvell.ReoGrid.Actions.AddOutlineAction.Do()
   bij af.e(IAction A_0, Boolean A_1, Boolean A_2)
   bij unvell.ReoGrid.ReoGridControl.DoAction(Worksheet sheet, BaseWorksheetAction action)
   bij unvell.ReoGrid.Editor.ReoGridEditor.groupColumnsToolStripMenuItem_Click(Object sender, EventArgs e)
   bij System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bij System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   bij System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.ToolStrip.WndProc(Message& m)
   bij System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Offline

#3 2016-03-03 14:24:40

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

Re: Ungrouping disables right-click context menu for columnhead

Hi, very nice found. Thanks for reporting. These problems will be fixed in next release.

Offline

#4 2016-03-15 14:53:34

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

Re: Ungrouping disables right-click context menu for columnhead

These problem have been fixed in version 1.2.1. Please try the latest version: https://reogrid.net/download/

Offline

Board footer

Powered by FluxBB