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.
Syncfusion Feedback

Displaying checkbox as checked?

Thread ID:

Created:

Updated:

Platform:

Replies:

2976 Feb 24,2003 10:43 AM Feb 24,2003 11:13 AM Windows Forms 3
loading
Tags: GridControl
jyotsna
Asked On February 24, 2003 10:43 AM

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 10:50 AM

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 11:10 AM

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 11:13 AM

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.

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

;