Home Forums WinForms controls Xceed Grid for WinForms C# Forcing a column to display checkbox Reply To: C# Forcing a column to display checkbox

Xceed Support
Member
Post count: 5658

Since the CellEditor and CellViewer are using the same code to paint, and the checkbox control does not support transparent background, it is why you are having opaque background.

You can have the checkbox to only take the place it need instead of all the cell space. You do that by setting the GridCheckBox.FitToCell property to False. That way the control will only take the space needed, and you will then see the background of the Cell (Grid). Just note that will also change the way the checkbox get checked. The user will now need to click exactly on the checkbox to check or uncheck (If FitToCell is set to False (Default), clicking anywhere on the cell check or uncheck the checkbox).

Imported from legacy forums. Posted by Francois (had 592 views)