michael Messages: 153 Registered: May 2007 Location: Germany
After testing for a while it seems that reading data from the datagrid doesn't work because there is no row selected.
Here is what i'm doing:
I start my application, it reads some data from an sql-table and shows them in a sqlarrayctrl which is placed in my first topwindow.
Then i open a editdialog (2nd topwindow) which tries to get the data from datagrid. The result is empty.
I tried to get the selected row by using datagrid.GetCursor to check what going on and the result is -1 which means there is no row selected. This is the reason why there is no data as a result of using datagrid.Get(1) for example.
I think the problem is that i try to get the data after opening a new topwindow (my editdialog).