Using version 16.2 of UltraWinGrid. We have several hidden columns in the grid. When we check out the form in Visual Studio 2015's C# and TFS, the hidden columns appear. This is becoming a big problem because many of our forms have numerous grids that have to be redone. Is this is a bug or is there a workaround?
Hi Mark,
This is not expected behavior and it is not a known issue. Are you able to send a sample that I can use? I would be able to check the sample into our TFS server in order to see how checkins affect it.
If you cannot provide a full sample, please send over your designer code and any databinding code for the grid. I can open a private case for you if you prefer not to send this information through the forum.
Finally, I'd like to know when you notice this issue. Are you able to see the change in the file immediately when checking it out? Can you use TFS to compare the versions and find a specific difference? Or is this something that only affects the running application? Please let me know.
Hi Mike,
Thanks for your reply. So to explain what happens in more detail:
We open the Visual Studio designer for a form which contains a number of databound UltraGrids (bound to an Infragistics UltraDataSource via the designer) and other controls. Some of the columns in these UltraGrids have various settings such as "hidden". The designer.cs code looks like this before the changes:
// // SSDBGrid2 // this.SSDBGrid2.DataSource = this.SSDBGrid2DS; UltraGridColumn31.Header.VisiblePosition = 0; UltraGridColumn31.Hidden = true; UltraGridColumn31.Width = 123; UltraGridColumn30.Header.VisiblePosition = 1; UltraGridColumn30.Width = 72; UltraGridColumn29.Header.VisiblePosition = 2; UltraGridColumn29.Width = 64; UltraGridColumn28.Header.Caption = "Inv. Amt."; UltraGridColumn28.Header.VisiblePosition = 3; UltraGridColumn28.Width = 76; UltraGridColumn27.Header.VisiblePosition = 4; UltraGridColumn27.Width = 76; UltraGridColumn26.Header.VisiblePosition = 5; UltraGridColumn26.Width = 76; UltraGridColumn25.Header.VisiblePosition = 6; UltraGridColumn25.Hidden = true; UltraGridColumn25.Width = 123; UltraGridColumn24.Header.VisiblePosition = 7; UltraGridColumn24.Hidden = true; UltraGridColumn24.Width = 123; ultraGridBand6.Columns.AddRange(new object[] { UltraGridColumn31, UltraGridColumn30, UltraGridColumn29, UltraGridColumn28, UltraGridColumn27, UltraGridColumn26, UltraGridColumn25, UltraGridColumn24}); this.SSDBGrid2.DisplayLayout.BandsSerializer.Add(ultraGridBand6); this.SSDBGrid2.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;
Upon changing anything on the designer, for example moving some buttons around, the designer files gets rewritten and various items in the designer.cs file moved around. After this happen, the designer code looks like this:
// // SSDBGrid2 // this.SSDBGrid2.ActiveRowIndex = 0; this.SSDBGrid2.DataSource = this.SSDBGrid2DS; this.SSDBGrid2.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;
As you can see, all of the column information has been lost. The columns still display of course, because they're in the datasource, but every customization made to the columns of the UltraGrid seems to be gone.
I hope that helps you track it down. If you have any idea what might be going, that would be helpful, we have over 150 forms with hundreds of UltraGrids on them, so hand editing here isn't a viable solution.
If you don't know what could be happening, we'll try our best to get you a sample, but it might be difficult.