Hi,
I have added a ComboEditor in a grid cell. I want to have multiple selections, so the CheckBoxStyle is CheckStyle.CheckBox.
I have created a DataTable with DataColumns in code and assigned to grid.DataSource.
(1) For the ComboEditor, what is the type of the DataColumn?
DataColumn dc = new DataColumn ("colName", typeof (???))';
(2) How can I access the check boxes when I create the grid? In the InitializeRow event of the grid, I create a ComboEditor and assign it to grid.EditorComponent, but when I fill the combeEditor items with ValueListItems with the CheckState = CheckState.Checked, none of the check boxes are checked. Only CheckState.Indeterminate will show a gray checked checkbox.
Regards and thanks.
1) typeof(object), typeof(string), or System.Array. For example, if you wanted to provide a front end for multiple integers, you could use typeof(int[]).
2) The checkboxes are a representation of the cell's value. For example, if the column's data type was typeof(int[]), and you assigned int[]{ 1, 3, 5 } to the cell, the three items corresponding to those values would be would be checked
Hi Brian,
Thanks for the quick reply. It is working, except when I checked some check boxes and I change the focus to another cell, I get the following message:
I created the DataTable and DatColumns
DataTable dt = new DataTable ("dtBeeps");
dc = new DataColumn ("colLeftG1Speakers", typeof (string[]));
Hello,
I want to announce that this issue is already fixed.
Thank you.
I have created a support ticket for you with id CAS-68843-NP8VYR in our system. I will update you as soon as I have information for you via the mentioned support ticket.
I tried this out in a small sample (which I have attached here just for reference) and I get the same results.
It seems to work if the grid column DataType is object[] but not string[].
I'm going to forward this thread over to Infragistics Developer Support so they can open a case for you and have this looked into as a possible bug.