Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Raja #1
Is it possible to repeat the DataGrid header on the top of each Printed page
I've got a lengthy DataGrid that I need to print. I can use IE to print the
page, and everything works great, but I'd like to add a few enhancements. In
the past (with the old ASP), I've been able to use the THEAD element and the
display:table-header-group style to repeat a table header (i.e. the column
headers) on each printed page - it worked great. I'd like to find a way to
accomplish the same thing using the ASP.NET DataGrid where I could repeat
the grid header on the top of each printed page.
If I could just slap
the THEAD elements around the first rendered row, I'd be free and clear, but
I've tried everything I can think of.
A Clue to this and a Possible Solution to this would be appreciated ASAP
Regards,
Raja
Raja Guest
-
Adding Page Numbers to Printed Repetitions
Greetings, I have an odd situation that requires me to print consecutive page numbers on printed documents, but not in the usual sense. We need to... -
Datagrid Header on All Printed Pages
In an asp.net app I need to print a lengthy datagrid. How can this be done and still have the datagrid header appear on all printed pages? I am... -
Repeat Header??
Hi, Can I repeat the datagrid header every X rows??? Regards Eval -
Repeat Header every 10 rows
Hi, everyone How can i repeat the datagrid header every 10 rows?? I have tried several methods, but all have failed so far. regards ... -
Repeat DataGrid?
How do I repeat a DataGrid x number of times, where x is the number of DataTables in a DataSet (and using each table in the DataSet as the... -
jernej #2
Re: Is it possible to repeat the DataGrid header on the top of each Printed page
I have similira problem.
And solution is
--
jerne
-----------------------------------------------------------------------
jernej's Profile: [url]http://www.highdots.com/forums/m80[/url]
View this thread: [url]http://www.highdots.com/forums/t69501[/url]
jernej Guest
-
Unregistered #3
Re: Is it possible to repeat the DataGrid header on the top of each Printed page
U Can Use following dun function to create THEAD:
Private Sub MakeGridViewPrinterFriendly(ByVal gridView As GridView)
If gridView.Rows.Count > 0 Then
gridView.UseAccessibleHeader = True
gridView.HeaderRow.TableSection = TableRowSection.TableHeader
End If
End Sub
Now call this function in "GridView1_RowDataBound" event as:
MakeGridViewPrinterFriendly(GridView1)
Hope it will help you........
Yatish.Unregistered Guest



Reply With Quote

