Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show pictures in a grid

Grids

How to show pictures in a grid

by  Mike Gagnon  Posted    (Edited  )
1. Create a blank from
2. Put a grid on it and set the columncount to 1
3. Create a new class based on a container
4. Put an oleboundcontrol on the container and resize to the same size of the container. Save the class.
5. Modify the column1 of the grid and drop the container onto column1 as a second currentcontrol. Change the currentcontrol to the container.
6. If you are using a general field, in the init of the form put:
Code:
THIS.GRID1.COLUMN1.Mypic1.Oleboundcontrol1.ControlSource="myCursor.pic"
7. Change the row height to accomodate the height of the picture.

Mike Gagnon

Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top