UnderlayNext Header getting hidden by "green-bar" Detail

Posted by: softcomlimited on 24 June 2020, 10:52 am EST

    • Post Options:
    • Link

    Posted 24 June 2020, 10:52 am EST

    Hello,

    It took me a while to realize that because my Header has UnderlayNext=True the header text gets hidden by “green-bar” in my Detail when Me.Detail.BackColor = System.Drawing.Color.Honeydew gets set in Detail_Format event.

    Is there an “OverlayNext” approach that I can use?

    My workaround is to move the header text into the details and manually hide it after the first detail. Is there a better way?

    Thanks

    Brian

  • Posted 24 June 2020, 4:20 pm EST

    Hello Brian,

    You can give the Header the same background color as detail have. After you can use the following code to hide the header from 2nd time:

    int i=0;
    public void GroupHeader1_Format()
    {
    	if(i == 1)
    	{
    		this.GroupHeader1.Visible = false;
    	}
    	else
    	{
    		i = 1;
    	}
    	
    	
    }
    
    

    if it not helpful, could you please share the layout that you want to achieve.

    Thanks,

    Mohit

  • Posted 25 June 2020, 12:04 am EST

    Mr Hohit,

    Thank you for the suggestion. It is very similar to what I did but since I have the Detail color alternating you have to sync the header color with takes more code so mine works out quicker. I was really wishing there was a way to make the header print on top of the detail’s backcolor.

    Thank you any ways once again.

    Brian

  • Posted 26 June 2020, 1:20 am EST

    Hello,

    Currently, there is no way to make the header print on top of the detail. Can you add control in the detail section the same as in the header and hide after first rendering.

    Thanks,

    Mohit

  • Posted 26 June 2020, 1:43 am EST

    Which is exactly I did thanks.

    Brian

  • Posted 26 June 2020, 1:44 am EST

    Which is exactly I did thanks.

    Brian

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels