Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Grid for Microsoft .NET User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

5.4 Limitations

The following sections describe limitations to using .NET controls with Objective Grid for Microsoft .NET.

5.4.1 Some Controls Cannot Be Sized Vertically

Some of the .NET controls that are supplied with Visual Studio .NET do not always size themselves as requested. For example, the controls NumericUpDown, TextBox, and ComboBox cannot be sized vertically. Their vertical size is determined by the font used in the control, rather than by the setting of the Size property. These .NET controls may not fill the entire vertical area of a grid cell when used as grid cell editors. Similarly, they may occupy more vertical area than the cell in which they are embedded. To overcome this limitation, you may choose to write your own custom controls for these features.

5.4.2 CellControl Behavior Must Be Customized Using Delegates

The current design does not permit derivation from the CellControl class to customize the behavior of .NET cell controls. Currently, customizing the behavior of CellControl objects must be achieved by attaching delegates to the events associated with CellControl instances.

5.4.3 The .NET Control Can Be Drawn in Only One Cell at a Time

The .NET control can be drawn in only one cell at a time because only one instance of a .NET control is used for entire ranges of grid cells. As such, it is not immediately obvious that a particular type of control is used in an inactive cell that uses a .NET control. To overcome this limitation, attach a delegate to the CellControl.DrawCellControl event and draw inactive (non-current) cells as desired using GDI+.

5.4.4 Supports Registration of a Maximum of 32 .NET Controls

A single GridControl object supports the registration of a maximum of 32 .NET controls.



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.