This sample demonstrates resizing individual rows in a grid. It also illustrates how to implement the IGridRowHeight interface and its routines for getting and setting row heights for elements.
This is how it looks after resizing the rows.
The resizable row feature is implemented by the CustomEngine class.
It has the following five classes:
GridEngineFactory class
This is inherited from the GridEngineFactoryBase. It overrides the CreateEngine() method, which returns a new grouping engine.
GroupingEngine class
This is inherited from the GridEngine and overrides the following methods:
GroupingRecordRow class
This is inherited from the GroupingRecordRow and implements the IGridRowHeight.
This same functionality is implemented in the GroupingCaptionRow and the GroupingColumnHeaderRow classes.
In the main form, the CustomEngine class is invoked using the following code:
GridEngineFactory.Factory = new GroupingEngineFactory();
Note: To use the class, CustomEngine (included with this sample), instead of an instance from the GridHelperClass, include '//' before #define HELPERCLASS to mark it as a comment from the Form.cs file in the sample.