Hi,
Interesting problem here. For some reason I am seeing double on my card view grid. Attached is a screenshot
In the design view, everything appears to be fine. However when I launch the application and maximize the window, the duplicate cardview appears along with the splitter to divide the screen. They are perfectly synched up (clicking on a caption on one side expands the card on both sides).
Below is the code from the Designer.cs file.
Infragistics.Win.UltraWinGrid.
UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Band 0", -1);
UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("EmployeeID");
UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FullName");
UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Title");
UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OfficeCity");
UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("IdstStrtDate");
UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FirmStrtDate");
UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FirmEndDate");
UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Email");
UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Phone");
UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Bio");
UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CompStrc");
ColScrollRegion colScrollRegion1 = new Infragistics.Win.UltraWinGrid.ColScrollRegion(932);
ColScrollRegion colScrollRegion2 = new Infragistics.Win.UltraWinGrid.ColScrollRegion(-7);
Infragistics.Win.
Appearance appearance1 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinDataSource.
UltraDataColumn ultraDataColumn1 = new Infragistics.Win.UltraWinDataSource.UltraDataColumn("Column 0");
this.ugEmp = new Infragistics.Win.UltraWinGrid.UltraGrid();
this.ultraDataSource1 = new Infragistics.Win.UltraWinDataSource.UltraDataSource(this.components);
this.panel1.SuspendLayout();
((System.ComponentModel.
ISupportInitialize)(this.ugEmp)).BeginInit();
ISupportInitialize)(this.ultraDataSource1)).BeginInit();
this.SuspendLayout();
// ugEmp
//
ultraGridBand1.CardSettings.Style = Infragistics.Win.UltraWinGrid.
.Compressed;
ultraGridBand1.CardView =
true
;
ultraGridColumn1.AutoCompleteMode = Infragistics.Win.
AutoCompleteMode
.None;
ultraGridColumn1.Header.VisiblePosition = 0;
ultraGridColumn1.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn1.RowLayoutColumnInfo.OriginY = 21;
ultraGridColumn1.RowLayoutColumnInfo.PreferredCellSize =
new System.Drawing.Size
(404, 0);
ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize =
(88, 0);
ultraGridColumn1.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn1.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn2.AutoCompleteMode = Infragistics.Win.
ultraGridColumn2.Header.Caption =
"Full Name:"
ultraGridColumn2.Header.VisiblePosition = 1;
ultraGridColumn2.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn2.RowLayoutColumnInfo.OriginY = 0;
ultraGridColumn2.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn2.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn2.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn2.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn3.AutoCompleteMode = Infragistics.Win.
ultraGridColumn3.Header.Caption =
"Title:"
ultraGridColumn3.Header.VisiblePosition = 2;
ultraGridColumn3.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn3.RowLayoutColumnInfo.OriginY = 2;
ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn3.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn4.AutoCompleteMode = Infragistics.Win.
ultraGridColumn4.Header.Caption =
"Office-City:"
ultraGridColumn4.Header.VisiblePosition = 3;
ultraGridColumn4.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn4.RowLayoutColumnInfo.OriginY = 4;
ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn4.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn4.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn5.AutoCompleteMode = Infragistics.Win.
ultraGridColumn5.Format =
"M/d/yyyy"
ultraGridColumn5.Header.Caption =
"Industry Start:"
ultraGridColumn5.Header.VisiblePosition = 4;
ultraGridColumn5.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn5.RowLayoutColumnInfo.OriginY = 6;
ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn5.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn5.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn6.AutoCompleteMode = Infragistics.Win.
ultraGridColumn6.Format =
ultraGridColumn6.Header.Caption =
"Firm Start:"
ultraGridColumn6.Header.VisiblePosition = 5;
ultraGridColumn6.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn6.RowLayoutColumnInfo.OriginY = 8;
ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn6.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn6.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn6.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn7.AutoCompleteMode = Infragistics.Win.
ultraGridColumn7.Format =
"mm/dd/yyyy"
ultraGridColumn7.Header.Caption =
"Firm End:"
ultraGridColumn7.Header.VisiblePosition = 10;
ultraGridColumn7.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn7.RowLayoutColumnInfo.OriginY = 10;
ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn7.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn8.AutoCompleteMode = Infragistics.Win.
ultraGridColumn8.Header.VisiblePosition = 6;
ultraGridColumn8.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn8.RowLayoutColumnInfo.OriginY = 12;
ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn8.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn8.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn8.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn9.AutoCompleteMode = Infragistics.Win.
ultraGridColumn9.Header.VisiblePosition = 7;
ultraGridColumn9.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn9.RowLayoutColumnInfo.OriginY = 14;
ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize =
ultraGridColumn9.RowLayoutColumnInfo.PreferredLabelSize =
ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn10.AutoCompleteMode = Infragistics.Win.
ultraGridColumn10.CellMultiLine = Infragistics.Win.
DefaultableBoolean
.True;
ultraGridColumn10.Header.VisiblePosition = 8;
ultraGridColumn10.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn10.RowLayoutColumnInfo.OriginY = 16;
ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize =
(404, 142);
ultraGridColumn10.RowLayoutColumnInfo.PreferredLabelSize =
(88, 142);
ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn10.RowLayoutColumnInfo.SpanY = 3;
ultraGridColumn10.VertScrollBar =
ultraGridColumn11.AutoCompleteMode = Infragistics.Win.
ultraGridColumn11.CellMultiLine = Infragistics.Win.
ultraGridColumn11.Header.Caption =
"Compenstation:"
ultraGridColumn11.Header.VisiblePosition = 9;
ultraGridColumn11.RowLayoutColumnInfo.OriginX = 0;
ultraGridColumn11.RowLayoutColumnInfo.OriginY = 19;
ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize =
(218, 109);
ultraGridColumn11.RowLayoutColumnInfo.PreferredLabelSize =
(88, 109);
ultraGridColumn11.RowLayoutColumnInfo.SpanX = 5;
ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn11.VertScrollBar =
ultraGridBand1.Columns.AddRange(
new object
[] {
ultraGridColumn1,
ultraGridColumn2,
ultraGridColumn3,
ultraGridColumn4,
ultraGridColumn5,
ultraGridColumn6,
ultraGridColumn7,
ultraGridColumn8,
ultraGridColumn9,
ultraGridColumn10,
ultraGridColumn11});
ultraGridBand1.GroupHeadersVisible =
false
ultraGridBand1.Override.AllowGroupBy = Infragistics.Win.
.False;
ultraGridBand1.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.
HeaderClickAction
.Select;
ultraGridBand1.UseRowLayout =
this
.ugEmp.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
this.ugEmp.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle
.Solid;
this.ugEmp.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean
.ugEmp.DisplayLayout.ColScrollRegions.Add(colScrollRegion1);
.ugEmp.DisplayLayout.ColScrollRegions.Add(colScrollRegion2);
this.ugEmp.DisplayLayout.GroupByBox.Hidden = true
.ugEmp.DisplayLayout.MaxColScrollRegions = 1;
.ugEmp.DisplayLayout.MaxRowScrollRegions = 1;
appearance1.BackColor = System.Drawing.
SystemColors
.ControlDark;
appearance1.BackColor2 = System.Drawing.
Color
.Transparent;
appearance1.BackGradientStyle = Infragistics.Win.
GradientStyle
.BackwardDiagonal;
appearance1.ForeColor = System.Drawing.
.ControlText;
appearance1.ForeColorDisabled = System.Drawing.
.ugEmp.DisplayLayout.Override.CardCaptionAppearance = appearance1;
this.ugEmp.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds
.ScrollToFill;
this.ugEmp.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle
.Immediate;
this.ugEmp.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand
.OutlookGroupBy;
this.ugEmp.Dock = System.Windows.Forms.DockStyle
.Fill;
this.ugEmp.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte
)(0)));
this.ugEmp.Location = new System.Drawing.Point
(10, 0);
this.ugEmp.Name = "ugEmp"
this.ugEmp.Size = new System.Drawing.Size
(934, 553);
.ugEmp.TabIndex = 0;
this.ugEmp.Text = "ultraGrid1"
this.ugEmp.UseOsThemes = Infragistics.Win.DefaultableBoolean
this.ugEmp.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this
.ugEmp_InitializeLayout);
// ultraDataSource1
The Designer code here is adding a ColScrollRegion to the grid.I'm not sure why it's not showing up at design-time. You can probably go to grid.DisplayLayout.ColScrollRegions in the property grid and reset the collection to remove it.