/winforms-grid-display-custom-rows

Display custom rows in the WinForms Data Grid control.

Primary LanguageVisual Basic .NETOtherNOASSERTION

WinForms Data Grid - Add custom data rows

This example demonstrates how to display custom rows (ordinal, blank/group, and summary) in the WinForms Data Grid. Custom rows do not exist in the grid's data source. Custom rows support data editing, sorting, and grouping.

The example creates a data source wrapper and handles the following events:

  • The CustomColumnSort event is handled to display custom rows at the specified position regardless of sorting.
  • The ShowingEditor event is handled to prevent editing blank and summary custom rows.
  • The CustomColumnGroup event is handled to group custom rows. The CustomDrawGroupRow event is handled to display text within a custom group row.

See Also

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)