Is there a way to get programmatic access to the columns of a ActiveReports detail section?

Posted by Seth Spearman on Stack Overflow See other posts from Stack Overflow or by Seth Spearman
Published on 2010-05-24T19:06:55Z Indexed on 2010/05/24 19:11 UTC
Read the original article Hit count: 646

Filed under:
|
|

Hello,

I have a report in Data Dynamics ActiveReports for .NET. In this report I am programmatically setting the ColumnCount property of the detail section to X. The detail section has one databound textbox.

The ColumnDirection property of the detail section is set to AcrossDown and the and then the data binding mechanism automatically fills across with data after setting the DataSource and DataMember.

Here is the code...

Public Sub RunReport
        Dim count As Integer = 0

        ' ...    get count

        Detail1.ColumnCount = count

        Me.DataSource = ds
        Me.DataMember = ds.Tables(0).TableName

End Sub

That code works fine and the data is automatically filled across the report.

Now I need to alter the report and circle or highlight one of the items that is auto-filled across columns in the report.

I cannot find any way to programmatically access the auto-generated columns so I can turn on a border or draw a circle or something. Any ideas how I would do that?

Seth

© Stack Overflow or respective owner

Related posts about .NET

Related posts about visual-studio