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?
Hi,
This works just fine for me. Are you sure that the name is right? Did you try with another font like "Lucida Sans" or "Lucida Sans Typewriter" for example?
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?