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.
Unfortunately, activation email could not send to your email. Please try again.

GridControl column with ToggleButtons

Thread ID:

Created:

Updated:

Platform:

Replies:

121266 Nov 25,2015 02:57 AM Nov 26,2015 10:07 AM Windows Forms 1
loading
Tags: GridControl
Roberto Guerzoni
Asked On November 25, 2015 02:57 AM

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

Vinish Kumar K [Syncfusion]
Replied On November 26, 2015 10:07 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;