How to get RowIndex of Data at runtime?

edited 5:33AM in FastReport .NET
There has a TextObject in DataBand with ClickEvent. When it is runtime, I want to get the RowIndex of TextObject's Data in the DataSource.
How can I do?
Thanks

Comments

  • edited 5:33AM
    Hello,

    Put the following expression in the Text object's Hyperlink.Expression property:
    [Row#]
    also set the Hyperlink.Kind to "Custom".
    In the "Click" event handler, obtain the value:
        private void Text1_Click(object sender, EventArgs e)
        {
          int value = int.Parse((sender as TextObject).Hyperlink.Value);
          MessageBox.Show(value.ToString());
        }
    

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.