Article Preview
Buy Now
COLUMN
Grid Control
Exploring Xojo's New DesktopGrid Control
Issue: 24.5 (September/October 2026)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 20,422
Starting Page Number: 45
Article Number: 24506
Resource File(s):
project24506.zip Updated: 2026-08-31 13:09:01
Related Link(s): None
Excerpt of article text...
For years, a criticism of Xojo was that its
listBoxcontrol was too limited. It's great for displaying simple tabular text but struggles with more complex data. Also, since it doesn't load on demand, for large amounts of information (i.e., thousands of rows), it could become slow. While over time, thelistBoxhas been improved, adding support for text editing, checkboxes, and pictures within cells, each cell is limited to just those types of controls.With the new
DesktopGridcontrol, however, you have almost unlimited power. Each cell is, in effect, acontainerControl, meaning it can have multiple controls with its own layout (think of it like a miniature window). See Figure 1 for an example.So, should you stop using the
listBoxand switch everything toDesktopGrid?Two Similar Controls, Two Very Different Approaches
The main difference between
DesktopGridandlistBoxis that the former pulls its data as needed from adatasource. This makes it much faster for larger datasets and lets you create more complicated data layouts, but it's also alot more complicated to implement.You can write code to fill a
listBoxin Xojo in just minutes; aDesktopGridwill take you much longer to set everything up. If you're doing something simple, like just displaying some text, alistBoxis probably the way to go.
...End of Excerpt. Please purchase the magazine to read the full article.











