Set font is DataGrid TextBox Column

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

Dim dgtbc_docno As DataGridTextBoxColumn =
CType(dgStandard.TableStyles(0).GridColumnStyles("docno"),
DataGridTextBoxColumn)
dgtbc_docno.TextBox.CharacterCasing = CharacterCasing.Upper
dgtbc_docno.TextBox.Font = "" <-- How should I set it ??
Thanks in advance .
 
Hello Agnes,

I believe you are trying to set the font of the textbox.
To do so you can use the following code snippet:

dgtbc_docno.TextBox1.Font = New Font("Arial", 12, FontStyle.Italic)

HTH

Mona[Grapecity]
 
Back
Top