ReoGrid includes comprehensive data management features for binding, filtering, validating, and protecting worksheet data. These features work together to build data-driven spreadsheet applications.

Quick Reference

// Bind a data source
sheet.DataSource = new DataTableSource(myDataTable);

// Add auto filter to column headers
sheet.CreateColumnFilter("A", "E",
    new AutoColumnFilterUI());

// Add data validation
sheet.SetRangeDataValidation("B2:B100",
    new DataValidationAttribute {
        InputType = DataValidationType.Integer,
        MinValue = 1, MaxValue = 100
    });

// Protect the worksheet
sheet.SetSettings(WorksheetSettings.Edit_Readonly, true);

In This Section

Was this article helpful?