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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting a value for Checkbox celltype

Thread ID:

Created:

Updated:

Platform:

Replies:

18717 Sep 8,2004 04:01 AM UTC Sep 8,2004 08:44 AM UTC WinForms 2
loading
Tags: GridControl
Thiyagu
Asked On September 8, 2004 04:01 AM UTC

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 06:01 AM UTC

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 08:44 AM UTC

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.

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

;