This is a migrated thread and some comments may be shown as answers.

Table Control ColumnHeadersPrintOnEveryPage property doesn't work properly.

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
m Tajvari
Top achievements
Rank 1
m Tajvari asked on 17 Nov 2009, 10:41 AM
Hi there
I just installed Telerik reporting Q2 2009 and I have a problem with new Table control ColumnHeadersPrintOnEveryPage
property. I want to bind a data source to my table programmatically. Its a simple table with 2 columns:(PersonnelID, PersonnelName). Here is what I do for data binding:


public Report5() 
 
InitializeComponent(); 
 
SqlConnection sqlConnection1 = new SqlConnection(); 
SqlCommand sqlSelectCommand1 = new SqlCommand(); 
SqlDataAdapter sqlDataAdapter1 = new SqlDataAdapter(); 
sqlConnection1.ConnectionString = myconnectionString; 
sqlSelectCommand1.CommandText = mycommand; 
sqlSelectCommand1.Connection = sqlConnection1; 
sqlDataAdapter1.SelectCommand = sqlSelectCommand1; 
 
this.table1.DataSource = sqlDataAdapter1; 
 


I use default rows and columns of table control and just in header row cells write the header text for each column and in details row bind each cell to it's related feild using "=Fields.FieldName". Every thing is ok and table shows my expected data but ColumnHeadersPrintOnEveryPage property doesn’t work Correctly and column header just appear in first page while this property is true. When I use a TableWizard and a sqlDatasource as Datasource this property work correctly and column headers appear in every page. I search forums and read documents but can't find any solution. Is this a bug or I'm in a wrong way?

1 Answer, 1 is accepted

Sort by
0
Accepted
Milen
Telerik team
answered on 18 Nov 2009, 02:01 PM
Hi m Tajvari,

It all depends on the default table template used when you drop a table item on the report surface. The first row in the table template is now (since Q3 2009) a column header row, so it will be affected from the repeat setting as expected. Please upgrade to the latest version of the product in order to use the new template.

If you have further questions, please ask the purchase holder in your company to add you as a license developer to the purchase your company holds. This will help us address your questions faster.
 

Kind regards,
Milen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
m Tajvari
Top achievements
Rank 1
Answers by
Milen
Telerik team
Share this question
or