Back to Devexpress

Lesson 6 - Insert Two Rows

windowsforms-95-controls-and-libraries-printing-exporting-getting-started-lesson-6-insert-two-rows.md

latest1.3 KB
Original Source

Lesson 6 - Insert Two Rows

  • Aug 15, 2025
  • 3 minutes to read

The link created in this lesson generates a document that contains two rows. The first row contains a check box brick in an unchecked state, and an empty brick. The second row is inserted to display the check box in the checked state.

View Example: Get Started with Printing Library

To insert two rows into the content of a printing link, do the following.

  1. To create a new printing link, declare a new class ( Lesson6 ) derived from the Lesson5 class defined in the previous lesson. The new class overrides the CreateRow and CreateDetail methods to create two new bricks: check box and empty brick.

  2. Next, modify the main form’s Load event handler to pass the Printing System of the Document Viewer to the new link.

Launch the application and view the result.

See Also

Lesson 7 - Insert Two Rows and Three Columns