ho aggiunto alla datagrid una datagrid.textboxcolum riesco a settare la il valore della stringa ma non il font
codice
Dim myTable As New DataTable
myTable = daset2.Tables("spese")
' Add a new DataColumn to the DataTable.
Dim myColumn As New DataColumn("myTextBoxColumn")
myColumn.DataType = System.Type.GetType("System.String")
myColumn.DefaultValue = "Salda"
SALDA é IL TESTO DELLA DATAGRIDTEXTBOXCOLUM
myTable.Columns.Add(myColumn)
' Get the CurrencyManager for the DataTable.
Dim cm As CurrencyManager = CType(Me.BindingContext(myTable), CurrencyManager)
' Use the CurrencyManager to get the PropertyDescriptor for the new column.
Dim pd As System.ComponentModel.PropertyDescriptor
pd = cm.GetItemProperties()("myTextBoxColumn")
Dim myColumnTextColumn As DataGridTextBoxColumn
Dim myfont0 As New Font("Verdana", 31, FontStyle.Regular, GraphicsUnit.Pixel)
' Create the DataGridTextBoxColumn with the PropertyDescriptor.
myColumnTextColumn = New DataGridTextBoxColumn(pd)
' Add the new DataGridColumn to the GridColumnsCollection.
DataGrid2.DataSource = myTable
DataGrid2.TableStyles.Add(New DataGridTableStyle)
DataGrid2.TableStyles(0).GridColumnStyles.Add(myCo lumnTextColumn)