DataGridViewButtonCell Change Backcolor

If Visual Styles are enabled, can this be done If so how

Thanks
Simmy


Answer this question

DataGridViewButtonCell Change Backcolor

  • S.Mark

    How would I do that The buttonrenderer doesn't have a way to set the backcolor.

    Any sample appreicated!

  • Ben Nakagawa

    did u tried what i mentioned , (DefaultCellStyle propert of DataGridViewButtonColumn, and set the SelectionBackColor ) i think it will change the backcolor of your buttons not the cell.


  • caiman

    The button is drawn based on the current Windows theme running. I don't think there's a way to overrride this unless you create a custom DataGridViewColumn with a custom button cell style
  • delly_jm

  • blettner

    Thanks, but that doesn't change the buttons backcolor only the cells.

  • Shiggity

    choose the DefaultCellStyle propert of DataGridViewButtonColumn, and set the SelectionBackColor
  • holzert

    That changes the cells backcolor, not the buttons.

  • lingga

    Yes I tried all those and no effect.

  • DataGridViewButtonCell Change Backcolor