Hi,
I want to hide the header seperator between columns. Please see the image for more information.
I want to remove this divider. Please reply. Thanks in advance.
It's impossible for me to guess how to remove that line without knowing what property settings you are using in order to achieve the look you have here.
It looks like you have set UseOsThemes to false, but that by itself would not explain why there is no border at the top of the column headers or why the dividing line doesn't go all the way to the top.
It's probably some combination of HeaderStyle and BorderStyleHeader and possibly some other properties that you have set. Or maybe you got this by loading a Style Library (isl) file?
These are my grid layout settings:
layout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Inset; // gives nice border layout.ScrollBounds = ScrollBounds.ScrollToFill; // scrolls so bottom is end layout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate; // immediate scroll layout.Override.AllowDelete = DefaultableBoolean.False; // disables user input layout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True; layout.BorderStyle = Infragistics.Win.UIElementBorderStyle.None; layout.Override.BorderStyleHeader = Infragistics.Win.UIElementBorderStyle.Solid;
layout.Override.HeaderAppearance.BorderColor = System.Drawing.Color.Black; // set up header layout.Override.HeaderAppearance.TextHAlign = HAlign.Center; layout.Override.HeaderAppearance.TextVAlign = VAlign.Middle; layout.Override.HeaderAppearance.BackColor = System.Drawing.Color.White; layout.Override.HeaderStyle = HeaderStyle.Standard;
layout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False; layout.Override.ActiveRowAppearance.BackColor = Color.White; // White selected row layout.Override.ActiveRowAppearance.ForeColor = Color.Black; // Selected and non seleted should be same layout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.None; layout.Override.SelectTypeCol = Infragistics.Win.UltraWinGrid.SelectType.None; layout.Override.HeaderAppearance.BackColor = Color.White; layout.Override.HeaderAppearance.ForeColor = Color.Black; layout.Override.HeaderAppearance.BackColor2 = Color.White; layout.Override.CellClickAction = CellClickAction.RowSelect; // when user clicks grid then row is selected. layout.Override.AllowColSwapping = Infragistics.Win.UltraWinGrid.AllowColSwapping.NotAllowed; layout.Override.AllowColSizing = Infragistics.Win.UltraWinGrid.AllowColSizing.None; layout.Override.AllowColMoving = Infragistics.Win.UltraWinGrid.AllowColMoving.NotAllowed; layout.AutoFitStyle = AutoFitStyle.ResizeAllColumns;
Hope this gives a idea Mike???