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.

Checkbox in grid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

11632 Mar 12,2004 12:09 AM Mar 12,2004 02:42 AM Windows Forms 1
loading
Tags: GridControl
Rajiv
Asked On March 12, 2004 12:09 AM

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

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

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.

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.

;