Changing DataGrid Font Size

Discussion in 'ASP .Net Datagrid Control' started by Jeff Dillon, Apr 10, 2006.

  1. Jeff Dillon

    Jeff Dillon Guest

    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
    Jeff Dillon, Apr 10, 2006
    #1
    1. Advertising

  2. Jeff Dillon

    Jeff Dillon Guest

    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

    "Jeff Dillon" <> wrote in message
    news:%...
    > 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
    >
    Jeff Dillon, Apr 10, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. romy
    Replies:
    0
    Views:
    777
  2. dave richards
    Replies:
    2
    Views:
    600
    Paul Furman
    Feb 19, 2004
  3. wial
    Replies:
    2
    Views:
    804
  4. mttc
    Replies:
    2
    Views:
    2,370
    Roedy Green
    Jul 3, 2009
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    389
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page