Hi Ketil,

I think I found a bug and a problem.

The bug is that if you have a combo column and don't have any items in the combo, garbage characters appear in each cell. Also, if you do a GM_COMBOCLEAR, that same garbage appears as the first (and only) item in each combo box.

The problem is that is is necessary to also be able to do a GM_SETCELLDATA (as well as a GM_GETCELLDATA) to a combo cell so that data read in from a file can appear in the cell. Otherwise settings from a previous session cannot be saved and then read in and displayed later.

I have been playing with this control all day, and with the exception of the problems I've reported, it is simply great!

I have closely coupled it with my compiler and results are very nice.
Posted on 2003-10-11 23:50:18 by msmith
Hi all

New upload at the top.

- Fixed combobox bug. (thanks msmith)
- Added GM_CELLCONVERT message. Use it to retrive the text from any cell type.

KetilO
Posted on 2003-10-12 07:32:50 by KetilO
Hi Ketil,

The garbage data in the combo is gone.

I can now read data from the combo cells.

How do I put data into indivdual combo cells (like when loading a file into the grid) or, alternatively how to programatically select data from each combo to appear in each cell?

Could you do the inverse of GM_CELLCONVERT to allow writing (by the program, NOT the user) into an individual combo cell?

Also, how about deleteing a row?

Thank you for the quick response, and thank you again for this fine control.
Posted on 2003-10-12 11:31:57 by msmith
Hi Ketil,

Wish list:

GM_DELCOL
GM_INSERTCOL

Really dreaming :)

GM_SETCELLBCKCOLOR
GM_SETCELLTEXTCOLOR
Fonts
Row Headers
Posted on 2003-10-12 11:46:23 by msmith
Hi msmith

The combo cell works with indexes, not text. You need to convert text into indexes yourself. You select a certain combo text by setting it's index. It seem to me you are using the combo cell in a way it is not intended.

Deleting a row causes no problems.

GM_DELCOL
GM_INSERTCOL

Really dreaming

GM_SETCELLBCKCOLOR
GM_SETCELLTEXTCOLOR
Fonts
Row Headers

Colums can not be added after data has been inserted into the grid.
Individual cell properties is a bit overkill for such a simple grid control.

KetilO
Posted on 2003-10-12 13:26:57 by KetilO
Hi Ketil,

Delete row is now working for me. I don't understand why it also causes a scroll to the bottom of the grid. I notice that your example does not do that. I'll study your example.

How do you set a combo's index? If I could do that, then combo would be fine.

Thanks for all your help.
Posted on 2003-10-12 14:06:10 by msmith
Hi msmith

The combo index is automatic. The first item you add gets index 0, the next 1 and so on.

KetilO
Posted on 2003-10-12 16:00:55 by KetilO
Ketil,

Is there any way for the program to control what text is displayed in an individual combo cell?
Posted on 2003-10-12 16:31:21 by msmith
Hi msmith

Yes, by using GM_SETCELLDATA. The data will be an index (binary dword) and the corresponding text will show in the cell.

KetilO
Posted on 2003-10-12 17:01:45 by KetilO
Hi Ketil,

Could you PLEASE post an example.
Posted on 2003-10-12 17:10:50 by msmith
Hi Ketil,

Nevermind, I figured it out.

Thank you so much for all your help!
Posted on 2003-10-12 17:43:09 by msmith
Hi Ketil,

I noticed that GM_RESETCONTENT also resets the header text. Is there any way to put new text into the headers after using GM_RESETCONTENT?
Posted on 2003-10-17 17:18:09 by msmith
Hi

That is a bug. Use GM_SETHDRTEXT to set the header text.

KetilO
Posted on 2003-10-17 19:36:04 by KetilO
Hi all

New upload at the top.

- Fixed bug where columnheader text was lost on GM_RESETCONTENT.

KetilO
Posted on 2003-10-18 08:48:54 by KetilO
Hi all

New upload at the top.

- Added GM_RESETCOLUMNS.
- Added demo showing how to connect to access database.

KetilO
Posted on 2003-10-21 03:35:31 by KetilO
Possibly you know this bug on Griddemo4.
Using the attached database, Griddemo4.exe fails
when openning "Order Details" Table.

Thank you for sharing your excellent programming.

ipadilla
Posted on 2003-10-21 14:26:59 by ipadilla
Hi Ketil,

If i have 2 columns with button in a row, only one button is displayed when i browse the rows.

Seems like only one button is refreshed when i select another row
Posted on 2003-11-03 13:15:02 by Amokila
Hi Amokila

Thanks for bug report.
There was a paint problem. New upload at the top.

KetilO
Posted on 2003-11-03 14:02:24 by KetilO
Hi, KetilO. I want to use your RAGrid in my VB app just like I wanted to use your RAEdit serveral months ago. I wonder if it take much trouble for u to make a VB demo of RAGrid. I'll be VERY appreciated if u can help.
Posted on 2003-11-09 08:25:22 by optimus
i doubt KetilO code in VB ( who really want to code in that cr*p anyway).
you can use the control by adding a 'user custom control' in vb by ur self (or just google how to).
since its a dll, it wont be hard to load it up and use it.
Posted on 2003-11-09 12:43:08 by wizzra