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 2014-07-05 03:19:11

fjzwjlfnx
Member
Registered: 2014-06-17
Posts: 7

Exception occurs when double-clicked outside the grid range

Hello Jing:
      I Find   a new  Bug, version:0.8.6.2:
     When  I    double    click  mouse     out of all grid  range, throw an exception,how  can I  solve this problem? 
     thank you

Offline

#2 2014-07-05 04:06:23

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

Re: Exception occurs when double-clicked outside the grid range

This is an internal bug and will be fixed in next version, before that try this work-around code:

grid.FocusPosChanged += (s, e) =>
{
	var pos = grid.FocusPos;
	if (pos.Row >= grid.RowCount)
		pos.Row = grid.RowCount - 1;
	if (pos.Col >= grid.ColumnCount)
		pos.Col = grid.ColumnCount - 1;
	if (grid.FocusPos != pos) grid.FocusPos = pos;
};

Last edited by Jingwood (2014-07-05 04:06:44)

Offline

Board footer

Powered by FluxBB