DataGridLink() Constructor

Initializes a new instance of the DataGridLink class with default settings.

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v20.2.dll

Declaration

public DataGridLink()
Public Sub New

Examples

This example demonstrates how to create and display a Print Preview for the DataGrid control, via the DataGridLink.

PrintingLinks-Grid

using System;
using System.Windows.Forms;
using DevExpress.XtraPrintingLinks;
// ...

private void simpleButton1_Click(object sender, EventArgs e) {
    DataGridLink dgLink = new DataGridLink();
    dgLink.DataGrid = dataGrid1;
    printingSystem1.Links.Add(dgLink);
    dgLink.ShowPreviewDialog();
}
See Also