Results 1 to 5 of 5

Thread: String Grid. Or some form of Data Grid.

  1. #1

    String Grid. Or some form of Data Grid.

    Hello,

    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...
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  2. #2

    String Grid. Or some form of Data Grid.

    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';

    or

    MyString:=stringgrid1.Cells[1,1];

    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.

  3. #3

    String Grid. Or some form of Data Grid.

    Thanks, that helped a lot

    I really appreciate it.
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  4. #4

    String Grid. Or some form of Data Grid.

    XStringGrid is VERY good. You can make combo box and other complex cells.
    http://www.eye.ch/~mduerig/prog/index.htm

    IIRC it has some examples.

  5. #5

    String Grid. Or some form of Data Grid.

    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.
    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •