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
230
Replace checkbox image
posted

Hi I am trying to change the checkbox graphic using the code below..

  Dim img2 As Image
                    If CBool(e.Row.Cells("Principal").Value) Then
                        img2 = imlApplication.Images("Power On.png")
                    Else
                        img2 = imlApplication.Images("Power Off.png")
                    End If


                    e.Row.Cells("Principal").Appearance.Image = img2

However when tested both the original checkbox and img image show in the cell.
How do I remove the checkbox image?
Thanks
  • 469350
    Offline posted

    Hi,

    The easiest way to do this would be to use the CheckBoxGlyphInfo or an UltraCheckEditor in Custom style.

    But which one you use depends on what you want.

    Do you want to do this for your whole application, or the whole grid, or just one column in the grid?