Code: Select all
Dim myDataband As New StiDataBand()
Code: Select all
Dim myColumn As New StiDataColumn
myDataband.Components.Add(myColumn)
Then I tried to convert the column to a component but it didn't work:
Code: Select all
TryCast(Report.GetComponentByName(myColumn.Name), StiComponent)
So how can a column be added to a databand via code?