HomeSupportSamples

Windows Mobile Development Samples
Grid control for .NET CF, Windows Mobile and Windows CE

Following Windows Mobile Development Samples demonstrate the usage of Resco .NET CF controls in various situations. All samples include C#, or VB .NET source code for Microsoft Visual Studio.

Note: Some samples may require installation of Windows Mobile 5.0 SDK. You can download it for free from Microsoft.


Sample 1: CustomCell sample with a new design (NEW)

This sample demonstrates how to use the CustomCell event to change the cell properties to custom values. The sample loads product sales data from the DataSet file called Sales.xml, which is attached to the project. The DataSet contains three columns; product name (ProductName), yearly sales (Sales), and sales change in % (Change). The sample handles the CustomCell method and does the following:

  • It does the custom formatting for the Sales column.
  • If the Change value is greater then 0 then it change the style of the cell to "Number_blue" and displays the green arrow image, otherwise it change the style to "Number_red" and displays the red arrow down image.

C# Sample


Sample 2: Custom ScrollBar in SmartGrid sample

This sample demonstrates how SmartGrid can be designed to use Resco ScrollBar control. It loads some data from DataSet and use LetterBar to navigate through SmartGrid.

C# Sample |  VB Sample


Sample 3: Sort on HeaderClick sample

This sample demonstrates how SmartGrid can be designed to sort the rows upon HeaderClick. Note that SmartGrid does not sort the rows really, but uses the capability of its datasources or the SQL server to sort the data instead. There are three forms in this sample, each demonstrating a different scenario.

C# Sample


Sample 4: Smartphone edit sample

This sample demonstrates how SmartGrid .NET control can be designed to load data from a database and edit them using SmartGrid's bult-in editing capabilities on Smartphone platform.

Note: This sample only works with version 5.2.0.3 or later.

C# Sample |  VB Sample


Sample 5: Sudoku sample

This sample is a simple Sudoku application for Smartphone platform. Demonstrates the editing capabilities of SmartGrid .NET control on Smartphone platform.

Note: This sample only works with version 5.2.0.3 or later.

C# Sample


Sample 6: Button sample

This sample demonstrates how to implement a button in one of SmartGrid's cells.

C# Sample


Sample 7: DateTimePicker sample

This sample demonstrates these features of SmartGrid:

  • Loading data from a SqlCe database
  • Displaying a date in a column
  • Editing date in a column using a System.Windows.Forms.DateTimePicker control

C# Sample


Sample 8: Divided Cells sample

This sample demonstrates how to divide cells in a column in SmartGrid.

C# Sample


Sample 9: Edit button

This sample demonstrates how SmartGrid can be designed to display a clickable icon in a cell.

C# Sample


Sample 10: Multiple columns selection sample

This sample demonstrates how SmartGrid can be designed in such a way that multiple columns can be selected by clicking on their header.

C# Sample


Sample 11: Multiple rows selection sample

This sample shows how SmartGrid can be used to select or deselect multiple rows by clicking them.

C# Sample


Sample 12: NumericUpDown Sample

This sample shows how to edit data in a column using a System.Windows.Forms.NumericUpDown control.

C# Sample


Sample 13: LinkCell Sample

This sample shows how to inherit from Resco.Controls.SmartGrid.CustomCell class and use your own cell in SmartGrid. In this particular sample a new MyCell class is created. MyClass underlines the text inside it so that it looks like a link. If the cell is clicked, the text changes color from blue to yellow indicating, that the cell was clicked.

C# Sample


Sample 14: Load data sample

This sample demonstrates the capabilities to load data from Northwind Access database. It uses three method of data loading:

  • Loading through DBConnector object
  • Loading through DataSource object
  • Manual loading through Rows collection

C# Sample |  VB Sample


Sample 15: CustomCell sample

This sample demonstrates how to use the CustomCell event to change the cell properties to custom values. The sample loads product sales data from the DataSet file called Sales.xml, which is attached to the project. The DataSet contains three columns; product name (ProductName), yearly sales (Sales), and sales change in % (Change). The sample handles the CustomCell method and does the following:

  • It does the custom formatting for the Sales column.
  • If the Change value is greater then 0 then it change the style of the cell to "Number_blue" and displays the green arrow image, otherwise it change the style to "Number_red" and displays the red arrow down image.

C# Sample |  VB Sample


Sample 16: Editable grid sample

This sample loads customer data to the SmartGrid control. Then it uses the TextBox control to allow data edit of the selected cell.

C# Sample |  VB Sample


Sample 17: CheckBox sample

This sample demonstrates how to implement checkboxes in SmartGrid using image column. There is also demonstration of default keyboard navigation and how to change the look of the row depending on the contents.

C# Sample |  VB Sample


Press releases

May 2, 2012
Resco Mobile CRM now available on Amazon’s Kindle Fire

Dynamics CRM is now accessible also in one of the most popular and cheapest tablets

April 17, 2012
Resco Mobile CRM 2012 Connectivity Update now available

New revolutionary features meet up in the Resco Mobile CRM App.

March 14, 2012
Resco Mobile CRM tested for ET1 by Motorola Solutions

Resco Mobile CRM has successfully passed the compatibility test

More
Version history

May 21, 2012
Resco InkBox, WindowsMobile v6.12.0.7

May 21, 2012
Resco ShortcutBar, WindowsMobile v6.12.0.7

May 21, 2012
Resco WeekCalendar, WindowsMobile v6.12.0.7

May 21, 2012
Resco MonthCalendar, WindowsMobile v6.12.0.7

More