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.

Setting a value for Checkbox celltype

Thread ID:

Created:

Updated:

Platform:

Replies:

18717 Sep 8,2004 12:01 AM Sep 8,2004 04:44 AM Windows Forms 2
loading
Tags: GridControl
Thiyagu
Asked On September 8, 2004 12:01 AM

Hi Clay, I''ve a column in my GDBG grid which is of type check box. Here while binding the data, a database column of type Varchar(1), which can have either ''Y'' or know ''N'' as values, as the source for that cell. That is, if the value is ''Y" i want the Checkbox to be checked and vice versa.. Plz help me out to sort this problem. Thanks, Thiagu.

Administrator [Syncfusion]
Replied On September 8, 2004 02:01 AM

You can try setting the checkbox options (GridBoundColumn.StyleInfo.CheckBoxOptions) for that column to use "Y" and "N". gbc.StyleInfo.CellType = "CheckBox"; gbc.StyleInfo.CheckBoxOptions.CheckedValue = "Y"; gbc.StyleInfo.CheckBoxOptions.UncheckedValue = "N";

Thiyagu
Replied On September 8, 2004 04:44 AM

Thanks a lot, Clay. This is what i exactly need.

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.

;