By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,686 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

print gridView

P: n/a
My web app is using master pages, On the content page I'm using a GridView. I
need to print my GridView and I need to exclude the HyperLink columns. How
can I print my content page and exclude the first 3 rows in my Grid due to
they are links and I don't need to print the links out?
Aug 22 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
you need to create a new friendly-page to print...
in that new page you can them ommited the 3 rows that you need

--

Bruno Alexandre
"a Portuguese in KÝbenhavn, Danmark"

"CSharpguy" <CS*******@discussions.microsoft.comescreveu na mensagem
news:63**********************************@microsof t.com...
My web app is using master pages, On the content page I'm using a
GridView. I
need to print my GridView and I need to exclude the HyperLink columns. How
can I print my content page and exclude the first 3 rows in my Grid due to
they are links and I don't need to print the links out?

Aug 22 '06 #2

P: n/a
how would i do that? Currently I have print page that is being used for all
my pages to print. But how can I elminate the rows I do not want from the
GridView?
"Bruno Alexandre" wrote:
you need to create a new friendly-page to print...
in that new page you can them ommited the 3 rows that you need

--

Bruno Alexandre
"a Portuguese in K√łbenhavn, Danmark"

"CSharpguy" <CS*******@discussions.microsoft.comescreveu na mensagem
news:63**********************************@microsof t.com...
My web app is using master pages, On the content page I'm using a
GridView. I
need to print my GridView and I need to exclude the HyperLink columns. How
can I print my content page and exclude the first 3 rows in my Grid due to
they are links and I don't need to print the links out?


Aug 22 '06 #3

P: n/a
put the query you do in a DataTable, them remove the rows you need using

DataTableObject.RemoveAt( rowNumber )

then bind the dataTable to your gridView

GridView.DataSource = DataTableObject
GridView.Bind()

--

Bruno Alexandre
"a Portuguese in KÝbenhavn, Danmark"

"CSharpguy" <CS*******@discussions.microsoft.comescreveu na mensagem
news:43**********************************@microsof t.com...
how would i do that? Currently I have print page that is being used for
all
my pages to print. But how can I elminate the rows I do not want from the
GridView?
"Bruno Alexandre" wrote:
>you need to create a new friendly-page to print...
in that new page you can them ommited the 3 rows that you need

--

Bruno Alexandre
"a Portuguese in KÝbenhavn, Danmark"

"CSharpguy" <CS*******@discussions.microsoft.comescreveu na mensagem
news:63**********************************@microso ft.com...
My web app is using master pages, On the content page I'm using a
GridView. I
need to print my GridView and I need to exclude the HyperLink columns.
How
can I print my content page and exclude the first 3 rows in my Grid due
to
they are links and I don't need to print the links out?



Aug 22 '06 #4

P: n/a
I'm not passing anything in a querystring to print. I'm printing like this:

on the content page i have this:
<table id="printTable>
-- i show my gridview here
</table>
then i have an image for printing on the page
then on the printing page i have this:

function printpr(id)
{
if (opener && !window.opener.closed)
{

document.writeln(opener.document.getElementById('p rintTable').outerHTML);
}
else

}
and this shows my grid in a print view page then i print, so i'm not passing
anything to my print page other then the element name.

"Bruno Alexandre" wrote:
put the query you do in a DataTable, them remove the rows you need using

DataTableObject.RemoveAt( rowNumber )

then bind the dataTable to your gridView

GridView.DataSource = DataTableObject
GridView.Bind()

--

Bruno Alexandre
"a Portuguese in K√łbenhavn, Danmark"

"CSharpguy" <CS*******@discussions.microsoft.comescreveu na mensagem
news:43**********************************@microsof t.com...
how would i do that? Currently I have print page that is being used for
all
my pages to print. But how can I elminate the rows I do not want from the
GridView?
"Bruno Alexandre" wrote:
you need to create a new friendly-page to print...
in that new page you can them ommited the 3 rows that you need

--

Bruno Alexandre
"a Portuguese in K√łbenhavn, Danmark"

"CSharpguy" <CS*******@discussions.microsoft.comescreveu na mensagem
news:63**********************************@microsof t.com...
My web app is using master pages, On the content page I'm using a
GridView. I
need to print my GridView and I need to exclude the HyperLink columns.
How
can I print my content page and exclude the first 3 rows in my Grid due
to
they are links and I don't need to print the links out?


Aug 23 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.