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.

Checkbox control

Thread ID:

Created:

Updated:

Platform:

Replies:

11733 Mar 15,2004 01:43 AM Mar 15,2004 04:00 AM Windows Forms 1
loading
Tags: GridControl
Rajiv Shethia
Asked On March 15, 2004 01:43 AM

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 04:00 AM

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

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.

;