Here is my report
At first I wondered if it was because there were too many columns in a page, so the header overflowed to the bottom, causing it to repeat. I tried by paging it less data. After doing it, it still seems to be the same.
What am i missing?
Could you guys help me?
i'am a junior developper and i have to include kendo hidden column in excel export. I have seen many solutions about this problem but it doesn't work for me. i had this to my grid for the export : image. And i add this js function : image. The idea of this function is clear but the click on the excel button export doesn't work if i add the "preventOrDefault". Then it works without it but my problem is : the client can see the hidden columns during a long time. How can i do to resolve that.
Iam sorry for my english but i hope that it is clear and someone will propose a good solution.
I keep having the columns from some of my DataGridViews disappearing randomly in the designer, and of course then nothing shows up when I run the application either. Currently I can't even set the datasource to None and then back to my binding source (which has always worked in the past), so I guess I need to create a new DataGridView and rebind the datasource to it. The problem is I add several listeners, set column widths, etc. and I can't keep track of everything I do to every table (and I shouldn't have to!). And I am tired of redoing the same thing over and over again.
I have done a little searching and found that others have this problem and it may be a bug in Visual Studio (I am using Visual Studio Express 2013). So my question: Am I doing something to cause this and can I prevent it from happening again?
Edit
I have determined the cause, but still not the solution. It happens when I change the DataTable behind the DataGridView by, for instance, adding or removing a column in the DataTable, and then add or remove that column to the DataGridView. Once I do that, all of the columns disappear from the Designer, including any listener code, etc. I added. I would really appreciate some help on this since it happens to me all the time since I am working on a project with changing needs and it is impossible to have the DataTables be static at this point. And it is really hard to remember the column widths, what listeners/tooltips/etc. I added to which columns, etc. This totally seems like it is a bug in the Designer.
I have recently faced the a similar problem with a Datagridview bound to a DataSource. When I was trying to add a new column to the Datagridview, all columns would disappear on pressing OK button in the column editor window.
Cause:
In my case it turned out that the new column I was trying to add was named 'override' in the database which is a reserved word in C#. Designer was trying to add the column with its existing name which of course was messing things up.
Solution:
Just change the Name property of the column in the column editor window before saving changes to your Datagridview. No need to change anything in your database or anywhere else.
I also faced similar issue. Make the changes in designer.cs file.
You will find all your columns in the designer.cs file. You can still add new columns using add column.
I just had this problem with my project.
Problem Description: I was adding a new databound column to my DataGrid. After pressing OK in the Edit Columns window, all columns disappeared.
Solution: Sadly you will loss your DataGrid columns configuration. Save the project and Reload. Columns will appear again (if not, set the DataSource again).
Side Effects: The worst part of this bug is that all components that were previously associated to your DataGrid will still exist in the project and I was not able to delete them using the designer or the Solution Explorer.
Project Cleanup: I had to clean up my project following this procedure:
Go to the DataGridColumn in Solution Explorer. It will show up in your project in the .Designer.cs file.
Delete or comment the line of the file.
Errors will appear in your error list.
Delete or comment the lines reported in the errors (located on InitializeComponent() method).
Caveat: I did the recommended changes and had no problems with my project. However always make a backup of your project before doing manual corrections like the ones I described.
Good luck and happy coding.
May be its a bug. But it worked for me to add column from the Add Column option as shown in pic and not from Edit Columns option.
I'm using VS 2013 and facing the same issue. I open the design form, edit the datagridview's column and then press OK but after that all column in my datagridview is gone.
I fix this by renaming all the column started with _ (underscore) and then press OK and everything just worked fine. Maybe it's a VS bug or my column name contains a reserved word.
take a look at my screenshot
I had the same problem with a column whose name ended with ?. Using an alias without the ? solved the problem. incidentally if, after the columns disappear, you close and open the form again in the IDE, you find that the columns are still there but all your laboriously applied formatting has disappeared. Thank heavens for source code control.
I had the same problem in VS 2015 with my columns disappearing from dataGridView. The cause, in my case, turned out to be that I had a column with the same name as a string variable from Form1. The solution for me was to rename the string variable and all of its references. After that, I was able to edit the "Columns" property without any columns disappearing. Hope this is helpful anyone still facing this issue.
Use Add Column instead of Edit Columns.
enter image description here
Hi I am designing a report using Crystal Report in VS 2010 C# to show students details.
I have designed the Crystal Report like below.
and my actual database table data is
but I am getting output is
What will be the problem?
Ashok as per your question information there might not be any error in your coding but might have error in Cristal report or Application setting.
Check your both that applications and try again.
It’s not quite clear what the issue you have at the moment. But based on your comments there are few areas that I think can be gone wrong.
Check you have correct data source set up (Right click on student under Database fields and go to set data source location and check you are connected to correct database and table)
Also go to file and check whether you have save data with report option is selected. If it is unselect that option
Try go to database and do verify database
Reason behind you seeing values like ###### is definitely because of not enough space been allocated
Hope this helps
You see the "######" because the field itself is not big enough to display the data. There are two ways you can solve this:
Click on the field to highlight it. Then move the mouse along the frame until the cursor changes to an arrow that points left and right ( <-->). Click and hold the left mouse button and resize the field (just like you would resize a window).
You can right-click on the field, select Format Field, and under the common tab you can check the "Can Grow" option.
I have made 3 ReportsViewer and need to make 7 more, and the all have the same header (title date and logo)
Is there a way to reuse parts of a report (e.g. header, footer)? I can't be the first one to need this feature :) I searched a bit on MSDN and alot on SO, but could't find anything, please help. Even a link in the right direction would be much appriciated.
I tryed messing around with subreports for a few days, but could't get anything to work, but I might just have to try harder or is there a other way?
It's not that I can't create the last 7 reports individuel, it's just that it feels so wrong not reusing anything, so I wan't to learn more about it.
Update:
Yes it can be done. The hardest part is to pasing the parametres down to the subreport.
Update2:
Few tips about the hard part, know that I've getting better.
1) Parent report, in the Report Data window add the parameters. After that, right click the subreport and choose properties. You also have to add the parameters here and right the name of the subreport (wihtout the .rdlc)
2) Sub report, Add the parameters in the Report Data window
3) I checked the "Alle blank value("")" and the "Allow null value". It might help you too if it's your first time.
You can use subreports for this task.