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
412
hide text in merged cell
posted

I have a webgrid with merged cells in the first column.  It's merging based on like ID's.  I have an image in that column and that's all I want to show up. Currently the text is written over the image.  I tried making the foreColor of the text transparent but no dice.

 I have this in InitializeLayout

e.Layout.Bands(0).Columns(4).MergeCells = True 

I have this in InitializeRow

            .FromKey("ServiceId").Style.CustomRules = "background-repeat:no-repeat;background-position:center center;"
            .FromKey("ServiceId").Style.BackgroundImage = "Copy of phone.png"
            .FromKey("ServiceId").Style.HorizontalAlign = HorizontalAlign.Center
            .FromKey("ServiceId").Style.VerticalAlign = VerticalAlign.Middle
            .FromKey("ServiceId").Style.ForeColor = Drawing.Color.Transparent