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
285
Cell selection and highlight
posted

Hi! My name is Mariano Abdala, and I'm having some issues trying to do something that should be simple.

In the beginning, I wanted to mark selected cells, but the active row appearance stepped over the selected cells... So I changed a couple properties (mostly the transparence of the active row) and I get some odd behavior.

This is what happens when I select multiple cells:

All the three of them are selected, but the one in the middle appearance is not the same the two on the sides. And, this is what happens if instead of selecting on the third cell I select its immediate inferior:

 


Can somebody please help me? I'm loosing tons of hours in this simple task...

Here are my properties on the grid:

this.components = new System.ComponentModel.Container();

Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();

Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();

this.smartUltraGrid = new Singletree.QuickEntry.Winform.SmartDataRetrievingGrid.SmartUltraGrid(this.components);

this.smartUltraDataSource = new Singletree.QuickEntry.Winform.SmartDataRetrievingGrid.SmartUltraDataSource(this.components);

((System.ComponentModel.ISupportInitialize)(this.smartUltraGrid)).BeginInit();

((System.ComponentModel.ISupportInitialize)(this.smartUltraDataSource)).BeginInit();

this.SuspendLayout();

//

// smartUltraGrid

//

this.smartUltraGrid.DataSource = this.smartUltraDataSource;

appearance4.BackColor = System.Drawing.SystemColors.Window;

appearance4.BorderColor = System.Drawing.SystemColors.InactiveCaption;

this.smartUltraGrid.DisplayLayout.Appearance = appearance4;

this.smartUltraGrid.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;

this.smartUltraGrid.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;

appearance1.BackColor = System.Drawing.SystemColors.ActiveBorder;

appearance1.BackColor2 = System.Drawing.SystemColors.ControlDark;

appearance1.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;

appearance1.BorderColor = System.Drawing.SystemColors.Window;

this.smartUltraGrid.DisplayLayout.GroupByBox.Appearance = appearance1;

appearance2.ForeColor = System.Drawing.SystemColors.GrayText;

this.smartUltraGrid.DisplayLayout.GroupByBox.BandLabelAppearance = appearance2;

this.smartUltraGrid.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;

appearance3.BackColor = System.Drawing.SystemColors.ControlLightLight;

appearance3.BackColor2 = System.Drawing.SystemColors.Control;

appearance3.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;

appearance3.ForeColor = System.Drawing.SystemColors.GrayText;

this.smartUltraGrid.DisplayLayout.GroupByBox.PromptAppearance = appearance3;

this.smartUltraGrid.DisplayLayout.LoadStyle = Infragistics.Win.UltraWinGrid.LoadStyle.LoadOnDemand;

this.smartUltraGrid.DisplayLayout.MaxColScrollRegions = 1;

this.smartUltraGrid.DisplayLayout.MaxRowScrollRegions = 1;

appearance12.BackColor = System.Drawing.SystemColors.Highlight;

appearance12.BackColor2 = System.Drawing.SystemColors.Highlight;

appearance12.BackColorAlpha = Infragistics.Win.Alpha.Opaque;

appearance12.ForeColor = System.Drawing.SystemColors.HighlightText;

this.smartUltraGrid.DisplayLayout.Override.ActiveCellAppearance = appearance12;

appearance7.BackColor = System.Drawing.SystemColors.Highlight;

appearance7.BackColorAlpha = Infragistics.Win.Alpha.Transparent;

appearance7.ForeColor = System.Drawing.SystemColors.ControlText;

this.smartUltraGrid.DisplayLayout.Override.ActiveRowAppearance = appearance7;

this.smartUltraGrid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;

this.smartUltraGrid.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True;

this.smartUltraGrid.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;

this.smartUltraGrid.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;

appearance6.BackColor = System.Drawing.SystemColors.Window;

this.smartUltraGrid.DisplayLayout.Override.CardAreaAppearance = appearance6;

appearance5.BorderColor = System.Drawing.Color.Silver;

appearance5.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;

this.smartUltraGrid.DisplayLayout.Override.CellAppearance = appearance5;

this.smartUltraGrid.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;

this.smartUltraGrid.DisplayLayout.Override.CellPadding = 0;

this.smartUltraGrid.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.FilterRow;

appearance9.BackColor = System.Drawing.SystemColors.Control;

appearance9.BackColor2 = System.Drawing.SystemColors.ControlDark;

appearance9.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;

appearance9.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;

appearance9.BorderColor = System.Drawing.SystemColors.Window;

this.smartUltraGrid.DisplayLayout.Override.GroupByRowAppearance = appearance9;

appearance11.TextHAlignAsString = "Left";

this.smartUltraGrid.DisplayLayout.Override.HeaderAppearance = appearance11;

this.smartUltraGrid.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;

this.smartUltraGrid.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;

this.smartUltraGrid.DisplayLayout.Override.MaxSelectedRows = 1;

appearance10.BackColor = System.Drawing.SystemColors.Window;

appearance10.BorderColor = System.Drawing.Color.Silver;

this.smartUltraGrid.DisplayLayout.Override.RowAppearance = appearance10;

this.smartUltraGrid.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;

appearance14.BackColor = System.Drawing.SystemColors.Highlight;

appearance14.BackColor2 = System.Drawing.SystemColors.Highlight;

appearance14.BackColorAlpha = Infragistics.Win.Alpha.Opaque;

appearance14.ForeColor = System.Drawing.SystemColors.HighlightText;

this.smartUltraGrid.DisplayLayout.Override.SelectedCellAppearance = appearance14;

appearance13.BackColorAlpha = Infragistics.Win.Alpha.Transparent;

appearance13.ForeColor = System.Drawing.SystemColors.ControlText;

this.smartUltraGrid.DisplayLayout.Override.SelectedRowAppearance = appearance13;

this.smartUltraGrid.DisplayLayout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.Extended;

this.smartUltraGrid.DisplayLayout.Override.SelectTypeCol = Infragistics.Win.UltraWinGrid.SelectType.None;

this.smartUltraGrid.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.None;

appearance8.BackColor = System.Drawing.SystemColors.ControlLight;

this.smartUltraGrid.DisplayLayout.Override.TemplateAddRowAppearance = appearance8;

this.smartUltraGrid.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;

this.smartUltraGrid.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;

this.smartUltraGrid.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;

this.smartUltraGrid.Dock = System.Windows.Forms.DockStyle.Fill;

this.smartUltraGrid.DropDownService = null;

this.smartUltraGrid.FixHeaderIndicator = Infragistics.Win.UltraWinGrid.FixedHeaderIndicator.Default;

this.smartUltraGrid.GridMetaData = null;

this.smartUltraGrid.GridPersister = null;

this.smartUltraGrid.LastBandCardView = false;

this.smartUltraGrid.Location = new System.Drawing.Point(0, 0);

this.smartUltraGrid.LockingService = null;

this.smartUltraGrid.Name = "smartUltraGrid";

this.smartUltraGrid.Parent = null;

this.smartUltraGrid.RowsToPreview = ((uint)(100u));

this.smartUltraGrid.ServiceProvider = null;

this.smartUltraGrid.ShowFilterBar = true;

this.smartUltraGrid.Size = new System.Drawing.Size(569, 281);

this.smartUltraGrid.TabIndex = 0;

this.smartUltraGrid.Text = "smartUltraGrid";

this.smartUltraGrid.UseFixedHeaders = false;

//

// smartUltraDataSource

//

this.smartUltraDataSource.Parent = null;

this.smartUltraDataSource.RowsToPreview = ((uint)(100u));

this.smartUltraDataSource.ServiceProvider = null;

//

// SmartGrid

//

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

this.Controls.Add(this.smartUltraGrid);

this.Name = "SmartGrid";

this.Size = new System.Drawing.Size(569, 281);

((System.ComponentModel.ISupportInitialize)(this.smartUltraGrid)).EndInit();

((System.ComponentModel.ISupportInitialize)(this.smartUltraDataSource)).EndInit();

this.ResumeLayout(false);

 

Thanks!

Mariano Abdala.

Parents
No Data
Reply Children
No Data