View Full Version : String Grid. Or some form of Data Grid.

06-09-2006, 04:43 PM

Does anyone know how I can get a string grid like thing that enables me to type in information sort of like Microsoft Access?

I tried "String Grid" and "Draw Grid" and I have no idea how to edit information in them. Does anyone know how?

Please help me, thank you...

06-09-2006, 05:36 PM
Your correct in using a StringGrid.

to access the data in a stringgrid, you need to treat it as a 2d array, for instance:

stringgrid1.Cells[1,1]:='Some String';



If you want to be able to type directly into the cells (at run time), then you need to change a property in the object inspector, for the string grid. Set "goEditing" to true (within the options property). This will make the string grid more like Excel.

Hope this helps.

06-09-2006, 10:43 PM
Thanks, that helped a lot :)

I really appreciate it.

26-09-2006, 10:44 PM
XStringGrid is VERY good. You can make combo box and other complex cells.

IIRC it has some examples.

27-09-2006, 06:57 AM
A while back I wrote my own string grid, it allows you to control each cell color/shape and allows you to put components inside of each cell.

Let me know if you need it.