Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 23 in printed book and digital formats -- plus a one-year subscription (beginning with 24.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are short, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 24.5 ('LiDAR')
Instant purchase and download via GumRoad!

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):

Download Icon 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 listBox control 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, the listBox has 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 DesktopGrid control, however, you have almost unlimited power. Each cell is, in effect, a containerControl, 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 listBox and switch everything to DesktopGrid?

Two Similar Controls, Two Very Different Approaches

The main difference between DesktopGrid and listBox is that the former pulls its data as needed from a datasource. This makes it much faster for larger datasets and lets you create more complicated data layouts, but it's also a lot more complicated to implement.

You can write code to fill a listBox in Xojo in just minutes; a DesktopGrid will take you much longer to set everything up. If you're doing something simple, like just displaying some text, a listBox is probably the way to go.

...End of Excerpt. Please purchase the magazine to read the full article.