Settings disappeared

I my application I have some tabs with grids.
In every grid in design mode set parameters like: ShowCaption = false, alteranterecords, conditional forma, own text in column headers, ....
Today suddently all this settings disappeared :-(
I have previous version, but unfortunetly too old.
It looks like from *.Designer.cs was removed code lines like:
            gridColumnDescriptor1.HeaderText = "Pracownik";
            gridColumnDescriptor1.MappingName = "Nazwa";
or
            gridConditionalFormatDescriptor1.Appearance.AnyRecordFieldCell.TextColor = System.Drawing.Color.Red;
            gridConditionalFormatDescriptor1.Expression = "[Pracuje] = 0";
            gridConditionalFormatDescriptor1.Name = "ConditionalFormat 1";

It was lot of work and iritated me but this not a first time/

Anyone knows this problem ?
What operation do it ? If I know I will do backup before ...


3 Replies

AA Arulraj A Syncfusion Team October 11, 2018 05:33 AM UTC

Hi Krzysztof, 

Thanks for using Syncfusion product. 

We have tested your reported scenario using below attached sample. But the sample is working fine as we expected. So, please let us know the following details, 

  • Please let us know the your current Syncfusion product version details.
  • Let us know all the codes are generated from designer or manually enter the code in designer.cs file.
  • Please let us know the below attached sample differ from your customization.


Regards, 
Arulraj A 



KA Krzysztof Adamowicz October 11, 2018 12:16 PM UTC

I'm using:
- Visual Studio 2017 v 15.8.7
- Syncfusion - 16.2.0.50

As I said this not repetitive problem. Now I manually corrected it, set all options from the beginning.
That why I did report problem to support because I don't know why repeat it.
I asked community maybe somebody resolved it.

Application is similar to your example, but main form in my application names MainForm.cs and I have another file MainForm.Designer.cs
In your example I don't see Form1.Designer.cs and all setting is in Form1.cs
Maybe this is a reason ?
I don't touch manually files *.Designer.cs they are created and modified when I'm in design mode and change setting directrli in Form.

Maybe problem is with *.Designer.cs, maybe sometimes something reset it.

What is the way to switch from my concept to yours ? 






MG Mohanraj Gunasekaran Syncfusion Team October 12, 2018 04:03 PM UTC

Hi Krzysztof,  

Thanks for your update. 

We have tested your reported scenario with Designer.cs file in Syncfusion product version 16.2.0.50 and VS2017 but the sample is working fine as we expected so this is not the cause of your reported issue.  Please refer the below attached sample 


If it is possible please share your designer.cs file to reproduce the reported issue. It will be helpful to provide the solution at the earliest. 

Regards, 
Mohanraj G 



Loader.
Up arrow icon