Printing a .NET DataGridView

后端 未结 9 826
南旧
南旧 2020-12-08 05:33

I am fairly new to .NET and C#, but I have a DataGridView that I would like to print. What would be the best way to go about doing so?

9条回答
  •  孤街浪徒
    2020-12-08 06:12

    You could export the DataGridView to Excel and then print it from Excel.

    You could also consider to not show your data in a DataGridView, but show it in a ReportViewer control, which has the ability to export to PDF or Excel. From there it's possible to print your data.

提交回复
热议问题