mnemox, thanks for your time. I added some debugging code, and it appears that that line is working as it is supposed to. Just to be sure I changed it to your version, but the bug I described is still there sadly :(

EDIT:

KetilO:
Alright, I found the bug. In the description for the GM_ADDROW message it says that lpROWDATA can be null, so I did that. It seems however that the grid control cannot see the difference between an unitialized text field and a text field that starts at relative address +0 in the grid dataspace. Thus, if you have an unitinitialized text field (or USER data type, as in my case), it will act as if its data is stored at offset +0 in the storage space. I fixed this by initializing the row with empty data, but I think this really needs a solution in your code.
Posted on 2004-01-22 04:39:34 by Qweerdy
Hi Qweerdy

Have a look at this. It seem to work well.

KetilO
Posted on 2004-01-22 07:06:02 by KetilO
Thanks for taking the time to help me, however I managed to fix it. I guess you missed my last edit, sorry about that :(
Posted on 2004-01-22 07:58:33 by Qweerdy
Hi all

New upload at the top.

- Added pictures in grid demo (thumbnail gallery?).
- Fixed bug found by Qweerdy.
- Fixed a few minor bugs.

KetilO
Posted on 2004-02-20 05:48:45 by KetilO
Hi all

New upload at the top.

- Added row back and text color

KetilO
Posted on 2004-05-12 07:19:50 by KetilO
Hi all

New upload at the top.

- Fixed bug that could cause GPF when adding / editing cells.

KetilO
Posted on 2004-06-02 03:52:15 by KetilO
New upload at the top.

- Speed optimized sorting. Quicksort is slow if data is sorted. Solved by randomizing data before sorting.
- Added WM_COMPAREITEM to sort columns containing TYPE_USER data. See GridDemo3 project.

KetilO
Posted on 2004-06-05 10:11:00 by KetilO
Thanks for the release! Keep the good work up!


/siddhartha
Posted on 2004-06-05 10:18:45 by siddhartha
Hi all

New upload at the top.

- Updated ODBC example to include add, delete and update.

KetilO
Posted on 2004-06-17 16:05:06 by KetilO