i want the ultrawebgrid to be print when i click a button
Hello devakumari,
The best would be to use WebGridExcelExporter or WebGridDocumentExporter and to export the grid before print.
However it is possible to print the page with javascript function window.print(). <input type="button" value="Print this page" onClick="window.print()">
This will require additional effort. When you print webpages they are printed not very well. The reason is that CSS properties are designed for certain media.
That’s mean that you have to create additional css for printing.
For example: @media print {
body { font-size: 10pt }
}
@media screen {
body { font-size: 13px }
@media screen, print {
body { line-height: 1.2 }
For more information please refer to this link: http://www.w3.org/TR/CSS2/media.html