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,
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?
When I tried to apply this font to a label of IFG it worked. Other fonts also did not do the trick, but it would be useless because I need to use this font.
So I solved my problem by using a normal datagridview. Thnx for the help.
The sample works. Thanks for your help
best regards
Hello,
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.
Yes if you could create an example I can try on my pc that would be great. Thanks in advance
PedroPerreman,
I tried this, it works fine ot Windows 7 when the font is installed. Is this happening with all freshly installed fonts? Do you want me to create a sample for you?
Yes I have it installed on my windows 7 pro service pack 1 system.
I also use IFG versions provided to you.
Thanks.