Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Stingray Studio Getting Started Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

5.4 Objective Grid Sample

Following similar steps to the sequence proposed for the Objective Views sample, we port an Objective Grid project into a C# project. The related sample is located in the following folder of your Objective Grid installation:

<installdir>\Samples\Grid\Integration with .Net\GridForm\GridForm

In this sample, marshaling data with Platform Invoke is demonstrated for the following data objects:

To adjust message handling, the PreProcessMessage, ProcessDialogKey and ProcessCmdKey functions have been overridden.

5.4.1 Building the Objective Grid Sample

When testing this sample, you should set the build configuration for Objective Grid to Unicode static debug (OG903ud.lib). In the DLL properties, select Linker | Output File and set it to "../SharpTest/bin/Debug/OGDlg.dll". This places the DLL file into the C# project's bin/Debug folder, which allows us to build both projects at once.

To run this program in the ANSI configuration, the following changes should be made for the C# program:

5.4.2 Testing the Objective Grid Sample

When running the sample, you can test the following features:

Figure 10: Using the SetValueRowCol Button

Figure 11: Using the SetStyleRange Button

Figure 12: Using the GetValuesArray Button



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.