KnotGoblin
Technical User
I am addimg columns dynamically to a datgrid and I want to change the item style for the new column i am creating, but i am not sure how do so.
Here is an example of how I am adding the new columns.
Here is an example of how I am adding the new columns.
Code:
Function newDGcolumn(ByVal name As String, ByVal field As String) As DataGridColumn
Dim newColumn = New BoundColumn
newColumn.HeaderText = name
newColumn.DataField = field
Return newColumn
End Function
Me.myDataGrid.Columns.Add(newDGColumn("New", "myData"))