Headers of the column????

Stimulsoft Reports.NET discussion
Post Reply
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

Headers of the column????

Post by abhi0410 »

Hi,
i have designed the report.... and i have used the "Header" control to display the header of columns and i have placed the "DataSource" below that....

Now the problem is when Data is available then the Headers are visilble and no data is avilable while creating the report...the Headers are not visible...

Can any one tell me how to solve this problem?????
+
I want to display a msg that "No Data avaiable to Create Report".

I am using StiPreviewControl to display the Report...

Thanks....
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Headers of the column????

Post by Edward »

Hello.

1) Please set PrintIfDetailEmpty property of the master band in true (if it is a Master-detail relationship). For the Header band the name of the property is 'PrinIfEmpty'.

2) In the BeginRenderEvent of the First page of the report, please add the following code:

Code: Select all

if (MyDataSource.IsEmpty)
{
	MessageBox.Show("The DataSource 'MyDataSource' is empty");
}
Thank you.
Post Reply