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 » GridCtrl: Find and Select Row after Keypress
Re: GridCtrl: Find and Select Row after Keypress [message #19737 is a reply to message #19736] Thu, 08 January 2009 13:16 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
This is what i have now:

FOREACH_ROW(datagrid)
	{
		if(String(datagrid(1)).IsEqual("Hubert"))
		{
			datagrid.SetCursor(datagrid.GetCurrentRow());
			datagrid.SelectRow();
			datagrid.SetFocus();
		}
	}


Now the row with Hubert at col1 is selected, but there is another problem: I use this code to make my next query:

activeCustomer = IntStr(datagrid.Get(2));
				
		CreateDatagrid("Server");
		SelectData("*", "Server", KUNDE == activeCustomer, ALIAS);


ActiveCustomer should be "Heimer", but it's not.

Is datgrid.get(col) the right method to get the value of an selected row? Hope you can follow me...

[Updated on: Thu, 08 January 2009 18:44]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl - WhenRemoveRow doesn't work
Next Topic: HomeBudget AlwaysDrop
Goto Forum:
  


Current Time: Wed Aug 27 19:43:23 CEST 2025

Total time taken to generate the page: 0.05108 seconds