This article is about displaying data in mobile applications built on .NET Compact Framework platform. It demonstrates several typical data structures and their visualization on a small display of a mobile device.
Introduction
Choosing an appropriate and readable form of displaying data can be tricky, particularly if you are limited by the display size of a mobile device as well as its relatively slow processor. Resco provides several controls coping with this problem in various scenarios.
A good mobile application has to be easy to handle. The user interface should be as simple as possible, preferably operable with one hand. Whether the user is driving a car or doing other activities, it is annoying, if the application needs the attention of two hands at once. All this can be easily achieved with Resco MobileForms Toolkit.
Data in a form of table
Either it is a SQL CE mobile database, DataTable class or any other IList data source object, Resco SmartGrid for .NET is perfect for displaying data in a form of table. Built-in editing capabilities allow you to edit the displayed data. You can even provide your own UserControl derived object to edit the data in the cell and thus create your own editor. By using an ImageCell, you can display images inside the cells. This may help to provide additional information to the user while saving space on a small display. You can also set SmartGrid to utilize touch scrolling. The user can then scroll using his thumb.
![]() |
![]() |
![]() |
| Figure 1 | Figure 2 | Figure 3 |
Example: Products table showing each product's sales change, corresponding percentage and whether the product is in stock (see Figure 1).
Example 2: Filling in the order using the built-in auto-edit capabilities (see Figure 2 and 3).
Data in a form of list
You can display one dimensional list of data easily using Resco AdvancedList for .NET. Thanks to the possibilities of customization that Resco AdvancedList for .NET offers, you can create almost any kind of user interface. Compared to SmartGrid, AdvancedList only has a vertical scroll bar. It is designed in such a way, that horizontal scroll bar is not needed, because all the data can be fit into its width. This simplifies the user interface and brings more comfort for the user who can operate the list using one hand (there is no need for the stylus).
![]() |
| Figure 4 |
Example: Customer list showing detailed information about the selected customer. You can also display images and icons within AdvancedList's rows and thus create a well-arranged list of properties of the customer (see Figure Figure 4).
Tree-like data structures
Organizing data into a tree certainly brings advantages of fast searching and brings the opportunity to put related data together thus bringing order into the structure. The disadvantages are difficult data manipulation and display. Resco AdvancedTree for .NET puts both disadvantages aside. Filling AdvancedTree for .NET is easy, because you can either fill all the branches of the tree yourself, or you can have AdvancedTree fire an event each time it needs the data to be loaded. In the event handler it informs you which is the parent of the node you are currently adding as well as what is the level of node you are currently adding. You can choose a different node template for each node and thus graphically differentiate the individual levels of the tree nodes.











Join the conversation! Your thoughts help the community grow.