Get bounded Column name from stiText field

Stimulsoft Reports.NET discussion
Post Reply
SujeetSingh1984
Posts: 2
Joined: Wed Jan 04, 2017 9:16 am

Get bounded Column name from stiText field

Post by SujeetSingh1984 »

I ama using C# code to find attached column name or Datatype of bounded column with Text Field.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get bounded Column name from stiText field

Post by HighAley »

Hello.

Sorry, maybe we don't understand you right.
Could you describe your issue more detailed?

Thank you.
SujeetSingh1984
Posts: 2
Joined: Wed Jan 04, 2017 9:16 am

Re: Get bounded Column name from stiText field

Post by SujeetSingh1984 »

I have dropped Text1 control in report. And bounded column <DataSource>.<ColumnName> of datatype DateTime

Through C# i can see Text1.Text property = {DataSource.ColumnName}

I want to know the datatype of column bounded to Text1. Is there any property to know the datatype of bounded column.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get bounded Column name from stiText field

Post by HighAley »

Hello.

You could get the type with the next expression:

Code: Select all

DataSource.ColumnName.GetType()
Thank you.
Post Reply