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 » Get data from arrayctrl
Get data from arrayctrl [message #9666] Thu, 24 May 2007 13:05 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
I use an SqlArray named datagrid to display some data.

When i double-click on a row, a second sql-query gets data from another sql-table.

Then i call datagrid.reset() to clear the SqlArray. After that i add some new columns to the SqlArray and fill it with the second sql-query.

Then i try to get data from the first Column like this:

datagrid.Get(datagrid.GetCursor(), 0)


But i always get the data of the first Column of my initial sql-query which was already overwritten by my second sql-query.

Confused...

Michael
Re: Get data from arrayctrl [message #9686 is a reply to message #9666] Thu, 24 May 2007 23:53 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
So am I. Should work Smile

If possible, submit testcase package please.

Mirek
Re: Get data from arrayctrl [message #9688 is a reply to message #9666] Fri, 25 May 2007 00:15 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Solved the problem by improving my code. Thinking about a problem and then thinking about code-redesign is always the best solution. Smile

Thanks. Michael
Previous Topic: Hide arrayctrl column?
Next Topic: How to get edit data in virtual ArrayCtrl?
Goto Forum:
  


Current Time: Sun Apr 28 21:12:26 CEST 2024

Total time taken to generate the page: 0.03960 seconds