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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Checkbox control

Thread ID:





11733 Mar 15,2004 06:43 AM UTC Mar 15,2004 09:00 AM UTC WinForms 1
Tags: GridControl
Rajiv Shethia
Asked On March 15, 2004 06:43 AM UTC

Hi, I am trying to add cell of type check box to my databound grid but i am facing some problems: 1. I had assosiated DataTable to grid. I am trying to change checkbox state by specifing true or false for checkbox column but there is no change in checkbox state. 2. I am not able to check or uncheck checkbox. Do i have to handle the click event and change the state of control in my code? Thanks -Rajiv

Administrator [Syncfusion]
Replied On March 15, 2004 09:00 AM UTC

If your column in your DataTable is of type boolean, then you should not have to do anything to get things working. If your column is some other type, then you will have to set the GridBoundColumn.StyleInfo.CellType and CheckBoxOptions to make things work properly. Here is a sample that shows a bool datacolumn working initially when the grid is displayed. The grid also has a string column showing T''s and F''s, and an int column showing 1''s and 0''s. There is a button you can click that sets the CellType and CheckBoxOptions for these additional columns so they show as checkboxes. forum11733_668.zip


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

Live Chat Icon For mobile
Live Chat Icon