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

Checkbox in grid cell

Thread ID:





11632 Mar 12,2004 05:09 AM UTC Mar 12,2004 07:42 AM UTC WinForms 1
Tags: GridControl
Asked On March 12, 2004 05:09 AM UTC

Hi, I want to know a way to add checkbox to cell of essential grid? Regards, Rajiv

Administrator [Syncfusion]
Replied On March 12, 2004 07:42 AM UTC

You need to set the CellType to ''CheckBox" and to set teh CheckBoxOptions to reflect what you are using as a true/false value (ie, bool true/flase or 1/0 or T/F or ??). Me.GridControl1(2,3).CellType = "CheckBox" Me.GridControl(2,3).CheckBoxOptions = New GridCheckBoxCellInfo(True.ToString(), False.ToString(), "", True) Me.GridControl(2,3).CellValue = True If you are using a GridDataBoundGrid, you set these properties on the GridBoundColumn.StyleInfo for the given column. Me.GridDataBoundGrid1.Binder.InternalColumns(2).StyleInfo.CellType = "CheckBox" Me.GridDataBoundGrid1.Binder.InternalColumns(2).StyleInfo.CheckBoxOptions = New GridCheckBoxCellInfo(True.ToString(), False.ToString(), DBNull.Value.ToString(), True) See the Syncfusion\Essential Suite\Grid\Samples\Quick Start\CellTypes sample.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon