I am creating a report in telerik reporting. Structure of the report:
Name and day are row and column fields respectively. Now I want to add a row field after the column field. How to do that? I am using Cross Tab control.
Related
I am using telerik reports in Asp.net,
In which after exporting data into excel, Some of the column is getting merged (Column Value length < 10 char) .
Can any one suggest why the value is not placed into single column only ,
why the column is getting merged?
Is there any option in telerik report, where I can stop merging the column.
I've created a datatable dtAllStudentMarksDetail in C# which has 5 columns
Student Name | Maths Marks | Physics Marks | Chemistry Marks | Total Marks
and added a row at the last of the table which have total no of students in student name's column, total aggregate marks of Maths in Math marks' column and so on. Now i have set the crystal report's datasource dtAllStudentMarksDetail table. Now i want to make that last row which contains the total numbers font in bold and also want to add a line object above that row.
Is this possible using any sort of formula or i have to remove the last row from datatable and add an extra in the footer section and use formula fields to show the last field?
To get total summary of all student's entry, you did not add row in data-table, right, because crystal report have facility to give summary of your records.
Here you need to some step.
Remove summary row from your datatable.
In design mode of crystal report, set fields in detail section.
To get summary, add summary fields in report footer section or
group footer section. The footer section is used to show summarize view of your detail section, no need to do any thing for summary.
Check this link - http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-summary-field.htm
Second approach is add formula with sum of field(s), and set in footer, http://www.tek-tips.com/viewthread.cfm?qid=680307
Updated
Based on your comment, this is you need. you can bold it via simple property of each field and also in property popup you can bold based on your condition like if field value(Student's Marks) is 80% then bold.
Make textobject bold based on condition in crystal report
I have used a parameter to hide some columns in rdl report dynamically by passing a parameter 'ColumnVisiblity' as shown below
=iif(instr(Join(Parameters!ColumnVisibility.Value,","),"1")>0,false,true)
It will hide the column's values but it shows the column (blank column), how can I completely remove the column and arrange other columns.
I am generating columns dynamically in my RadGrid, so column count and their names are generated on the fly and so is the datatable that the grid is to be bound to.
Each column either represents an object in my system, or an empty one for user to create a new object. Each object is identified by a unique value property.
I would like to set this value to the column, so, when the grid is edited, I would like to use this value and update the object.
I am open for suggestions. For now I am thinking the options are
assigning the value to a property in GridTemplateColumn(which I dont think is possible)
use a hidden field in header of the column (how do I do it?)
To be more clear, both rows and columns are generated dynamically. I am using DataKeyNames for rows. Wondering how I should be storing unique values for columns!
Any help is appreciated.
Thanks!
I doubt if an official Telerik support exists here for this situation. One quirky solution will be to employ a row of hidden fields, one field per column, each storing unique value for the column.
You can add the unique value to one of the columns in the datatable and bind this column to grid. Make this column invisible so that it is not visible in the UI, but accessible in the backend.
I had a column in my DataGridView which is a DataGridViewComboboxColumn, and I need to bind this column from a database table which is also has a column with values like 1,2,3. Based on these values the combo box must display different values, ie. if 1 "Manager" and so on.
Let's use Northwind database as our test data.
These are the steps:
Configure datasource.
Drag a DataGridView to the form.
Drag Products onto the DatagridView.
Right click on DatagridView - Edit Columns.
Select CategoryID, change column type to DataGridViewComboBoxColumn.
Choose the datasource(Category table), display member(CategoryName) and value member(CategoryID) for the column. Click OK to apply changes.
Build and run the project. Voila~