Changing DataGrid Font Size

J

Jeff Dillon

I'm implementing a "Print" button on my web page. Everything is working, but
the users want the grid font size to be smaller when it prints.

Me.dgDataGrid.Font.Size = FontUnit.Point(8)

doesn't do the trick..

Any ideas? ASP.NET 1.1

Jeff
 
J

Jeff Dillon

Got it:

Private Sub dgDataGrid_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgDataGrid.ItemDataBound

If m_bPrint = True Then
e.Item.Font.Size = m_fntUnit
End If

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,225
Latest member
Top Crypto Podcasts

Latest Threads

Top