I am using a hierarchical dataset as datasource for my wintree. Because it consists of multiple layers I need the column headers displayed. However I also want the checkbox infront of the rows. Is there a way I can display the checkbox in the grid viewstyle ?
No, you can't get a checkbox to appear "in front of the rows". You can, however, have a column whose DataType is bool (or CheckState), which will cause a CheckEditor to be used by that column.
Thank you for helping me, how would I add a checkbox column to the wintree ? I cannot seem to find a checkboxcolumn type for the treeview.
Ok that worked. I set the column to allow editing. I have a few more questions:
Now I do have check boxes showing up but they have a square in the center, instead of false setting. What property sets the value of the check box? I tried the cell's editor.value property but that didn't do anything.
I also can't seem to change the value of the check box by clicking on it. Not sure why, unless I need to catch the click and explicitly change the value of the check box.
On that note what event do I need to catch to detect a change in value?
Thanks for the help.
Thanks for all the help but I am experiencing the same problem as the poster above me. I even tried to set the tree nodestyle to a tricheckboxstate but that didn't work.
For anyone that is interested:
I was porting from a library where the "Value" was text only. But Value is an object so you can just give it a true/false setting or a string and it will handle it.
So this.cells[key_to_unbound_cell].Value = false; //Gives check box a false setting
I was making this much harder than it actually was.
Though I still need to catch some event to let me toggle the box if someone clicks it. Still looking for this.
The CellValueChanged event fires when the value of a cell changes.
Brian Fallon"] The CellValueChanged event fires when the value of a cell changes.
This won't be triggered if the value doesn't change. When you click on the box the value dosen't change, it stays the same. It does not toggle. That is why I was thinking I had to catch the click event and manually toggle the check box but I don't think this is correct behavior. Something is wrong here. Its like I've set it to be editable yet it can't edit...
I am still having problems with the default value. I cannot seem to set a default value for the checkbox column. I keep getting the standard blue box. And I hate to have to loop through it to set the value to false.
that solved it,
thanx
It is possible that the DataColumn with which the cell you are trying to edit is associated is ReadOnly.
Im new to Infragistics controls. Im having problem with the Wintree control. I have a tree that is databound and I wanna be able to edit some of the data. I have changed the CellClickAction so I can edit the cell. But then i leave the cell I get a mesage that its read only. I have tried to change AllowCellEdit to full, but still the same problem. Does any one know how to fix it?