Click Event

Stimulsoft Reports.NET discussion
Post Reply
shmuly
Posts: 58
Joined: Wed Jul 05, 2006 2:19 pm

Click Event

Post by shmuly »

When a user clicks on a report Text component, I want to capture the Text of the original control ({Table.Field}) as well as the actual value of that field for the row the user clicked on.

Is this possible?

I tried with the TextValue but it always comes up blank.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Click Event

Post by Vital »

Please check Text.Value.

Thank you.
shmuly
Posts: 58
Joined: Wed Jul 05, 2006 2:19 pm

Click Event

Post by shmuly »

Here is the code I put in the Click event of the Text1

MessageBox.Show(Text1.Text.Value);

When I click, I get the MessageBox but it's empty.

I did this on the first sample "Simple List" that comes with StimulReport
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Click Event

Post by Vital »

Try following code:

Code: Select all

StiText text = sender as StiText;
MessageBox.Show(text.Text.Value);
Thank you.
Post Reply