• <menu id="w2i4a"></menu>
  • logo DevExpress WinForm中文手冊(cè)

    文檔首頁(yè)>>DevExpress WinForm中文手冊(cè)>>如何預(yù)覽XtraGrid控件

    如何預(yù)覽XtraGrid控件


    立即下載DevExpress WinForms

    下面的示例展示了如何預(yù)覽XtraGrid。

    C#:


    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();
    }


    VB.NET:


    Sub ShowGridPreview(ByVal grid As DevExpress.XtraGrid.GridControl)
    ' Check whether the Grid Control can be previewed.
    If Not grid.IsPrintingAvailable Then
    MessageBox.Show("The 'DevExpress.XtraPrinting' Library is not found", "Error")
    Return
    End If
    ' Opens the Preview window.
    grid.ShowPreview()
    End Sub


    下圖顯示了一個(gè)示例網(wǎng)格的預(yù)覽窗口。

    網(wǎng)格預(yù)覽窗口
    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();