U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl/DropGrid problem: Value related.
Re: GridCtrl/DropGrid problem: Value related. [message #33608 is a reply to message #33605] Tue, 30 August 2011 08:14 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Please use this fix (it will be committed in the evening)
void DropGrid::SearchCursor()
{
	if(!list.IsCursor())
		return;
	
	if(trowid < -1)
		trowid = rowid;
	value = list.Get(value_col);
	rowid = list.GetRowId();
	Refresh();
}

Crash was caused by one of the latest changes (feature request) that WhenSearchString should be called when list is cleared.
Thank you for the test case! (It really speeds up finding bugs)

[Updated on: Tue, 30 August 2011 08:15]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl with vertical headers
Next Topic: GridCtrl: master - detail
Goto Forum:
  


Current Time: Fri Oct 02 22:18:04 GMT+2 2026

Total time taken to generate the page: 0.01525 seconds