如何预览XtraGrid。
private void ShowGridPreview(DevExpress.XtraGrid.GridControl grid) {
// Check whether the Grid Control can be previewed.
if(!grid.IsPrintingAvailable) {
MessageBox.Show("The 'DevExpress.XtraPrinting' Library is not found", "Error");
return;
}
// Opens the Preview window.
grid.ShowPreview();
}
下图显示了示例网格的“预览”窗口