ReoGrid cell types transform ordinary cells into interactive UI elements — buttons, checkboxes, dropdowns, progress bars, images, and more. You can also create your own custom cell types.

Quick Reference

// Add a button cell
sheet.Cells["A1"].Body = new ButtonCell("Click Me");

// Add a checkbox
sheet.Cells["B1"].Body = new CheckBoxCell();

// Add a dropdown list
sheet.Cells["C1"].Body = new DropdownListCell(
    new[] { "Option 1", "Option 2", "Option 3" });

// Apply cell type to an entire column
sheet.SetColumnsWidth(0, 1, 120);
sheet.ColumnHeaders[0].DefaultCellBody = typeof(CheckBoxCell);

In This Section

Was this article helpful?