We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridControl column with ToggleButtons

Good morning
in a gridoftypeGridControlI would love to havea Boolean columnthat displaysaToggleButtontypebuttoninstead ofthe classicCheckBox.
Is it possible?Do you havea simple example?

Image Example
Toggle Button Columns
Thank you.

Roberto Guerzoni

1 Reply

VK Vinish Kumar K Syncfusion Team November 26, 2015 03:07 PM UTC

Hi Roberto,

Thank you for your interest in Syncfusion products.

You can use ToggleButton instead of checkbox. You can  just declare a control in the form and assign  the Control as celltype for a cell like below.
          

            ToggleButton togBtn = new ToggleButton();


            this.gridControl1.ColStyles[2].CellType = GridCellTypeName.Control;

            this.gridControl1.ColStyles[2].Control = togBtn;


Please let me know if you have any concerns.

Regards,
Vinsih K.


Loader.
Up arrow icon