how could I print or save datagrid view records?
-
I want to print my search result or save it showing in the data grid view.how I could do this?
For the printing I'm out. It's very hard(lots of work) to make a professional printing. For saving there are lots of ansewers. You could save it to a *.CSV file. Or to Excel or pdf. For excel this article is all about exporting and formatting the datas from the grid view. For PDF this one. And of course many other options. [Edit]When it comes to printing I always rely on external programs like Excel or FoxItReader/AcrobatReader or... . I found it easier to create small utilities that export a datagrid or a
List<T>
or... to Excel or PDF or ... than creating a printing solution. Sure it takes some time o create the *.dll(s) responsible for the generic export but after words you just call .Export() and you're done. [/Edit] -
I want to print my search result or save it showing in the data grid view.how I could do this?
Why posting at two places? For printing Datagrid: MSDN:Code: Printing a DataGrid (Visual C#)[^]
-
I want to print my search result or save it showing in the data grid view.how I could do this?