473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Printing out a datagrid

Is there a way to only print out the datagrid in a given web page? That is I
have a datagrid on my web page but I would like to add a button that will
only give me a page with the datagrid to print but nothing else.

Thanks,
Nov 18 '05 #1
3 1229
1. Create another page with only a datagrid and bind it to the same data
or
2. Set .Visible = False for all the other controls. This can be done readily
by putting them in a panel, and setting its .Visible to False.

"NoSf3RaTu" <no*@net.org> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
Is there a way to only print out the datagrid in a given web page? That is I have a datagrid on my web page but I would like to add a button that will
only give me a page with the datagrid to print but nothing else.

Thanks,

Nov 18 '05 #2
a couple of weeks ago i heard about some software by smartertrader.net
called print manager that could use pdfs so you could sort out the printing
that way. you could use the same stored procedure as was used on the
datagrid
"NoSf3RaTu" <no*@net.org> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
Is there a way to only print out the datagrid in a given web page? That is I have a datagrid on my web page but I would like to add a button that will
only give me a page with the datagrid to print but nothing else.

Thanks,

Nov 18 '05 #3
From an architecture stand point, I view suggest you use some sort of
template (xml templates) for all your page layouts. That way you have
a page that can only have a datagrid for printing without all the
menus/headers/footers....
http://xpcoder.net


"NoSf3RaTu" <no*@net.org> wrote in message news:<uw**************@TK2MSFTNGP12.phx.gbl>...
Is there a way to only print out the datagrid in a given web page? That is I
have a datagrid on my web page but I would like to add a button that will
only give me a page with the datagrid to print but nothing else.

Thanks,

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JasmineC | last post by:
Hi there! I'm having some problems printing out my windows form. Here's what I need to do: I need to print a datagrid off a windows form, however the datagrid is bigger than screen. When I tried...
3
by: Randy | last post by:
Hello, I'm trying to get some ideas on this. If you were going to have to print a datagrid control (about 20 columns of data), how would you do it. I'm trying to figure out how to get it to look...
3
by: Randy | last post by:
Hello, I'm trying to print a dataGrid using PrintDocument control. My datagrid has about 23 columns so it is fairly wide. When I use the PrintControl, it prints only the part of the dataGrid that...
2
by: Newbie | last post by:
i have a c# asp.net webform that contains a datagrid. the datagrid has a vertical scroll. i need to give the user the ability to print the datagrid's entire content (all the rows). IE's print menu...
4
by: Jay | last post by:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any...
5
by: ComputerStop | last post by:
I am attempting to print a datagridview. I have not found any method that works successfully. Has any one been successful with this?
4
by: Fred | last post by:
Hello, datagrids have GridLines, BorderWidth, BorderColor, ItemStyle.CssClass, ShowFooter ... properties, which can be used to customize the way they look when printed, how does one achieve the...
3
by: Jay | last post by:
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the...
0
by: Jay | last post by:
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the grid....
5
hussaini
by: hussaini | last post by:
please tell me any 1 printing code in datagrid in visual basic 6 in detail ----- Hello seniors members hope u will tell me ..... i have created a form in visual basic 6 so in the form there is a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.