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

GridControl CheckBox CellType problem

Thread ID:

Created:

Updated:

Platform:

Replies:

26150 Mar 15,2005 06:33 PM UTC Mar 16,2005 05:36 PM UTC Windows Forms 6
loading
Tags: GridControl
Khoi Phan
Asked On March 15, 2005 06:33 PM UTC

Hi, I''m using Grid Control (version 3.0.1.0) and having a problem with the checkbox grid cells. This is how I set up the checkbox grid cells: grid.TableStyle.CheckBoxOptions = new GridCheckBoxCellInfo(true.ToString(), false.ToString(), "", true) grid[i,j].CellType = "CheckBox" grid[i,j].CellValueType = typeof(bool) grid[i,j].CellValue = someBoolVar Initially the checkbox cellvalue has type of boolean. After a few clicks on the checkbox, the checkbox cellvalue change to type String. Note: everytime I check/uncheck the checkbox, I save the changed value back to the data object. I tried to create a sample to demonstrate the problem without success. Thanks

Administrator [Syncfusion]
Replied On March 15, 2005 06:43 PM UTC

Is this a virtual grid where you are handling QuerycellInfo/SaveCellInfo to interact with your data object? If not, when you tried to reproduce this in a sample, did you have the same grid.ActivateCurrentCellBehavior setting in your sample as in your real project? What events are you handling in your grid? If you can upload a sample, we can try to spot the problem?

Khoi Phan
Replied On March 15, 2005 09:26 PM UTC

Hi Clay, I''m using the Syncfusion GridControl. I tried to create a sample similar to the real project. But I was not able to reproduce to problem. Please take a look at this sample and hopefully you can determine why the grid change its cellvalue type from boolean to string after the checkboxes being clicked on/off a few times. The post button doesn''t seem to work. It said "Server too busy". I can''t post the sample project.

Administrator [Syncfusion]
Replied On March 15, 2005 09:48 PM UTC

You can send your sample to support@syncfusion.com and mention this forum thread in the subject line.

Khoi Phan
Replied On March 15, 2005 10:27 PM UTC

I''ve sent an email with sample project attached to support@syncfusion.com

Administrator [Syncfusion]
Replied On March 16, 2005 01:03 AM UTC

I could not see this problem in your sample either. One thing I noticed is that you did not set CellValueType. In your real application where you see the problem, do you have code like: this.gridControl1.ColStyles[SEP].CellValueType = typeof(bool);

Khoi Phan
Replied On March 16, 2005 05:36 PM UTC

I''ve come up w/ a workaround for it and it seemed to work fine. Thanks Clay, Khoi

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

;