ReoGrid provides numerous cell types for display in spreadsheets. By utilizing cell types, various input and output functionalities can be achieved within worksheets. Additionally, creating custom extended cell types is straightforward.

Built-in Cell Types

ReoGrid offers the following cell types:

For the full API reference for each type, see Built-in Cell Types.

Selection and Input Types

TypeDescriptionDetails
DropdownListCellDrop-down list for single item selectionDropdown List Cell
ComboListCellEditable combo box with auto-completionCombo List Cell
CheckBoxCellCheck box (toggles true/false)Built-in Cell Types
RadioButtonCellRadio button (mutual exclusion)Built-in Cell Types
DatePickerCellDate picker with calendar (WinForms only)Built-in Cell Types

Display Types

TypeDescriptionDetails
ButtonCellClickable buttonBuilt-in Cell Types
HyperlinkCellClickable hyperlinkBuilt-in Cell Types
ImageCellDisplays an imageBuilt-in Cell Types
ImageButtonCellImage on a buttonBuilt-in Cell Types
ProgressCellProgress bar (0โ€“1)Built-in Cell Types
NegativeProgressCellPositive/negative progress barBuilt-in Cell Types

Custom Cell Types

ReoGrid provides the ICellBody interface and CellBody base class for creating custom cell types. Override rendering, mouse, keyboard, and editing methods to create any cell behavior you need.

For the complete API reference and examples, see Custom Cell Types.

Quick Example

class StatusCell : CellBody
{
    public override void OnPaint(CellDrawingContext dc)
    {
        dc.DrawCellBackground();
        var bounds = GetBodyBounds();
        var color = Cell?.Data is "OK" ? SolidColor.Green : SolidColor.Red;
        dc.Graphics.FillRectangle(
            new Rectangle(bounds.X + 2, bounds.Y + 2, 12, bounds.Height - 4), color);
        dc.DrawCellText();
    }
}

sheet.Cells["A1"].Body = new StatusCell();
sheet["A1"] = "OK";

Class Hierarchy

ICellBody interface
CellBody base class
ContentCellBody CheckBoxCell, RadioButtonCell
ButtonCell ImageButtonCell
DropdownCell DropdownListCell, ComboListCell, DatePickerCell
ProgressCell NegativeProgressCell
HyperlinkCell
ImageCell
Was this article helpful?