Set font is DataGrid TextBox Column

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 .
 
M

Mona

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]
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top