Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
Unintentional Cardview "doubling"
posted

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);

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("EmployeeID");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FullName");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Title");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OfficeCity");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("IdstStrtDate");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FirmStrtDate");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FirmEndDate");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Email");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Phone");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Bio");

Infragistics.Win.UltraWinGrid.

UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CompStrc");

Infragistics.Win.UltraWinGrid.

ColScrollRegion colScrollRegion1 = new Infragistics.Win.UltraWinGrid.ColScrollRegion(932);

Infragistics.Win.UltraWinGrid.

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();

((System.ComponentModel.

ISupportInitialize)(this.ultraDataSource1)).BeginInit();

 

this.SuspendLayout();

 

 

 

 

 

 

// ugEmp

 

 

 

//

 

ultraGridBand1.CardSettings.Style = Infragistics.Win.UltraWinGrid.

 

CardStyle

.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 =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn1.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn1.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn2.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn2.Header.Caption =

 

"Full Name:"

;

ultraGridColumn2.Header.VisiblePosition = 1;

ultraGridColumn2.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn2.RowLayoutColumnInfo.OriginY = 0;

ultraGridColumn2.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn2.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn2.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn2.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn3.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn3.Header.Caption =

 

"Title:"

;

ultraGridColumn3.Header.VisiblePosition = 2;

ultraGridColumn3.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn3.RowLayoutColumnInfo.OriginY = 2;

ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn3.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn4.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn4.Header.Caption =

 

"Office-City:"

;

ultraGridColumn4.Header.VisiblePosition = 3;

ultraGridColumn4.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn4.RowLayoutColumnInfo.OriginY = 4;

ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn4.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn4.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn5.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

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 =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn5.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn5.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn6.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn6.Format =

 

"M/d/yyyy"

;

ultraGridColumn6.Header.Caption =

 

"Firm Start:"

;

ultraGridColumn6.Header.VisiblePosition = 5;

ultraGridColumn6.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn6.RowLayoutColumnInfo.OriginY = 8;

ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn6.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn6.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn6.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn7.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

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 =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn7.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn8.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn8.Header.VisiblePosition = 6;

ultraGridColumn8.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn8.RowLayoutColumnInfo.OriginY = 12;

ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn8.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn8.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn8.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn9.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn9.Header.VisiblePosition = 7;

ultraGridColumn9.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn9.RowLayoutColumnInfo.OriginY = 14;

ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 0);

ultraGridColumn9.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 0);

ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn10.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn10.CellMultiLine = Infragistics.Win.

 

DefaultableBoolean

.True;

ultraGridColumn10.Header.VisiblePosition = 8;

ultraGridColumn10.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn10.RowLayoutColumnInfo.OriginY = 16;

ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(404, 142);

ultraGridColumn10.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 142);

ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2;

ultraGridColumn10.RowLayoutColumnInfo.SpanY = 3;

ultraGridColumn10.VertScrollBar =

 

true

;

ultraGridColumn11.AutoCompleteMode = Infragistics.Win.

 

AutoCompleteMode

.None;

ultraGridColumn11.CellMultiLine = Infragistics.Win.

 

DefaultableBoolean

.True;

ultraGridColumn11.Header.Caption =

 

"Compenstation:"

;

ultraGridColumn11.Header.VisiblePosition = 9;

ultraGridColumn11.RowLayoutColumnInfo.OriginX = 0;

ultraGridColumn11.RowLayoutColumnInfo.OriginY = 19;

ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize =

 

new System.Drawing.Size

(218, 109);

ultraGridColumn11.RowLayoutColumnInfo.PreferredLabelSize =

 

new System.Drawing.Size

(88, 109);

ultraGridColumn11.RowLayoutColumnInfo.SpanX = 5;

ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;

ultraGridColumn11.VertScrollBar =

 

true

;

ultraGridBand1.Columns.AddRange(

 

new object

[] {

ultraGridColumn1,

ultraGridColumn2,

ultraGridColumn3,

ultraGridColumn4,

ultraGridColumn5,

ultraGridColumn6,

ultraGridColumn7,

ultraGridColumn8,

ultraGridColumn9,

ultraGridColumn10,

ultraGridColumn11});

ultraGridBand1.GroupHeadersVisible =

 

false

;

ultraGridBand1.Override.AllowGroupBy = Infragistics.Win.

 

DefaultableBoolean

.False;

ultraGridBand1.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.

 

HeaderClickAction

.Select;

ultraGridBand1.UseRowLayout =

 

true

;

 

 

this

.ugEmp.DisplayLayout.BandsSerializer.Add(ultraGridBand1);

 

 

this.ugEmp.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle

.Solid;

 

 

this.ugEmp.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean

.False;

 

 

this

.ugEmp.DisplayLayout.ColScrollRegions.Add(colScrollRegion1);

 

 

this

.ugEmp.DisplayLayout.ColScrollRegions.Add(colScrollRegion2);

 

 

this.ugEmp.DisplayLayout.GroupByBox.Hidden = true

;

 

 

this

.ugEmp.DisplayLayout.MaxColScrollRegions = 1;

 

 

this

.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.

 

SystemColors

.ControlText;

appearance1.ForeColorDisabled = System.Drawing.

 

SystemColors

.ControlText;

 

 

this

.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);

 

 

this

.ugEmp.TabIndex = 0;

 

 

this.ugEmp.Text = "ultraGrid1"

;

 

 

this.ugEmp.UseOsThemes = Infragistics.Win.DefaultableBoolean

.True;

 

 

this.ugEmp.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this

.ugEmp_InitializeLayout);

 

 

//

 

 

 

// ultraDataSource1

 

 

 

//

 

 

 

this.ultraDataSource1.Band.Columns.AddRange(new object

[] {

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    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.

Children
No Data