Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Change font in 1 cell of the ultragrid
posted

Hi guys

I try to change the font of a single cell in my ultragrid, because I want to show a barcode in that cell when the value="0123456789"

I use this code:

Private Sub ugVB_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs)

If e.Row.Cells("Links").Value.ToString = "0123456789" Then
   Try
      e.Row.Cells("Links").Appearance.FontData.Name = "IntHRP24DlTt"
   Catch ex As Exception
      MessageBox.Show(ex.Message)
   End Try
End If

End Sub

Bu this doesn't work for me.

Any suggestions?

Parents
  • 469350
    Offline posted

    Hi,

    I can't see anything wrong with this code. Does it work if you choose another font?

    Does the same font work if you apply it to another DotNet control, such as the DotNet Label control?

Reply Children