I''m using Grid Control (version 126.96.36.199) 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.
ADAdministrator Syncfusion Team March 15, 2005 01:43 PM
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?
KPKhoi PhanMarch 15, 2005 04:26 PM
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.
ADAdministrator Syncfusion Team March 15, 2005 04:48 PM
You can send your sample to firstname.lastname@example.org and mention this forum thread in the subject line.
KPKhoi PhanMarch 15, 2005 05:27 PM
I''ve sent an email with sample project attached to email@example.com
ADAdministrator Syncfusion Team March 15, 2005 08:03 PM
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);
KPKhoi PhanMarch 16, 2005 12:36 PM
I''ve come up w/ a workaround for it and it seemed to work fine.