Hide/Show field in group

edited 6:41PM in FastReport .NET
I am trying to supress the value of a column for all rows in a group (by transaction date) execpt the last row for that group. I have attached a screenshot of the desired result where the 1st row in the group does not show the 'Balance' value but does show for the last row for that group.

How can I do this?

Comments

  • edited 6:41PM
    Hello,

    Create BeforePrint event handler for the text object and write the following code in it:
        private void Text4_BeforePrint(object sender, EventArgs e)
        {
          Text4.Visible = Data1.IsLastRow;
        }
    

    Where Data1 is the name of the databand.

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.