Chapter 8 Samples
Introduction
Samples are located in the Samples subdirectory of your OBJECTIVE GRID FOR .NET installation directory. They include:
- SimpleSpreadSheet—Shows basic spreadsheet functionality.
- ExcelLike—Demonstrates OBJECTIVE GRID FOR .NET features that mimic some of the behaviors of Microsoft Excel.
- Virtual Grid—Shows how to store and retrieve grid data from a data structure.
- RaceAttendance—Demonstrates properties of the Stingray.Grid.Style class, and demonstrates printing, print preview, saving grid data to an HTML file, event handling, and embedding a properties sheet so that the grid and cell properties can be manipulated at runtime.
- Simple .NET Control—Shows the most basic use-case for embedded .NET controls: using a .NET
NumericUpDowncontrol as a cell editor. - Multiple .NET Controls—Shows how to use several different .NET controls as cell editors, and shows how to make use of CellControl properties and events to customize the behavior of the .NET controls.
- Custom .NET Control—Shows how to create a custom .NET control consisting of a
TextBoxwith a button on the right of the text, and shows how to use the custom .NET control as a grid cell editor. - EventHandlingByDelegation—Shows how to handle grid events using delegates.
- EventHandlingByInheritance—Shows how to handle grid events by deriving from GridControl and overriding virtual event handlers.
- Print—Shows how to utilize the print and print preview functionality in the grid.
- GridTabSample—Shows how to utilize the GridTabControl to display the grid in multiple tabs.
The SimpleSpreadSheet, ExcelLike, Virtual Grid, and RaceAttendance samples are described in the following sections.