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

Displaying checkbox as checked?

Thread ID:

Created:

Updated:

Platform:

Replies:

2976 Feb 24,2003 03:43 PM UTC Feb 24,2003 04:13 PM UTC WinForms 3
loading
Tags: GridControl
jyotsna
Asked On February 24, 2003 03:43 PM UTC

Hi, I have a datagrid bound to a dataset. In the datagrid i have a column of checkboxes that need to be displayed checked or unchecked depending on the value of the bound (checkbox) column to be 'Yes' or 'No'. How do I do this? THanks Jots

Administrator [Syncfusion]
Replied On February 24, 2003 03:50 PM UTC

Set style.CheckBoxOptions.CheckedValue = "Yes"; style.CheckBoxOptions.UncheckedValue = "No"; You can do this for the GridBoundColumn.StyleInfo or the TableStyle. Stefan

jyotsna
Replied On February 24, 2003 04:10 PM UTC

I was probably not clear with my question.... If my dataset column returned a "Y" then how do I set the corresponding checkbox column to display it checked. Thanks! > Set > > style.CheckBoxOptions.CheckedValue = "Yes"; > style.CheckBoxOptions.UncheckedValue = "No"; > > You can do this for the GridBoundColumn.StyleInfo or the TableStyle. > > Stefan

jyotsna
Replied On February 24, 2003 04:13 PM UTC

Oh ok I get it now...!! > I was probably not clear with my question.... > > If my dataset column returned a "Y" then how do I set the corresponding checkbox column to display it checked. > > Thanks! > > > > > Set > > > > style.CheckBoxOptions.CheckedValue = "Yes"; > > style.CheckBoxOptions.UncheckedValue = "No"; > > > > You can do this for the GridBoundColumn.StyleInfo or the TableStyle. > > > > Stefan >

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

or the page will be automatically redirected to 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

;