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
385
Remove summary row border
posted

Hi.

Help pls. How to make summary row looks like regular row? or at least remove border?

summary row

  • 29085
    Offline posted

    Hello,

    I am glad you found that Mike's response was helpful. Let us know if you have any additional questions regarding the UltraWinGrid.

  • 469350
    Verified Answer
    Offline posted

    Hi,

    You might have to play around with the code a little to get it to look closer to the cells in your grid. But here's some code to change the summary borders and BackColor. 

    I used Dotted borders here, since it looks like that's what your cells and rows are using. But if you want no borders are all, you can just changed Dotted to None.


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridOverride ov = layout.Override;

                ov.SummaryFooterCaptionVisible = DefaultableBoolean.False;
                ov.BorderStyleSummaryFooter = UIElementBorderStyle.Dotted;
                ov.BorderStyleSummaryValue = UIElementBorderStyle.Dotted;
                ov.SummaryValueAppearance.BackColor = SystemColors.Window;
                   
            }