Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Problem with IsRowEditable
Re: Problem with IsRowEditable [message #36337 is a reply to message #36187] Mon, 21 May 2012 09:58 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Daniel

Problem found (not the solution Smile ). I enclose you a super simple test case.

GridCtrlDragtest::GridCtrlDragtest()
{
	CtrlLayout(*this, "Window title");
	
	grid.ResizeColMode(0);
	grid.Inserting().Appending().Removing().Editing().Duplicating().Clipboard().SetToolBar()
					.EvenColor().MovingRows(1).Dragging().DrawFocus().ColoringMode(2)
					.SetCursor(0);
	
	grid.AddColumn("First");
	grid.AddColumn("Second");
	
	grid.Clear();		// Problem appears if this line is set
	grid.Add("Hello", "World");
	grid.Add("Hello2", "World2");
}

GUI_APP_MAIN
{
	GridCtrlDragtest().Run();
}

When dragging second line before first line it says "Moving row 2 before row 0". It should have to say "row 1". After that the exception appears. If I remove the Clear(), everything works perfect.

index.php?t=getfile&id=3752&private=0


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ColorScheme for individual cells
Next Topic: Jsonize for GridCtrl
Goto Forum:
  


Current Time: Mon May 13 07:04:23 CEST 2024

Total time taken to generate the page: 0.03341 seconds