Last Record in Detail Section

Posted by: kim on 28 August 2020, 10:01 pm EST

  • Posted 28 August 2020, 10:01 pm EST

    I am using AR 11 and using a section report. How can I check of the report is at the last record in the detail_format section?

    I am setting the datasource with a DataTable

    Is there a data object or something where i can check which row the report is on, and if its at the last row?

  • Posted 31 August 2020, 1:00 am EST

    Hello,

    You can check the counter variable with row count of the Datatable in the detail format event to achieve your requirement as follow:

    int count = 1;
    public void Detail_Format()
    {
    	if(count == datatable.Rows.Count)
    	{
    		//LAst record
    	}
    count= count +1;
    }
    
    

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels