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.
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...
YES! The answer is just as simple as I suspected.
On your node do:
UltraTreeNode utn = new UltraTreeNode();utn.Override.CellClickAction = CellClickAction.EditCell;
It now toggles. :)
Just out of curiosity how would you go about doing that with the designer ?The column doesn't have the override property available as far as I can see when you edit the column (Designer mode)
lunaios said: Just out of curiosity how would you go about doing that with the designer ?The column doesn't have the override property available as far as I can see when you edit the column (Designer mode)
Ok I just played around with the designer and found a much easier way to do this, even in my situation. Right click on your ultratree and go to "Custom Property Page" and click on the UltraTree at the highest level. The UltraTree has an Override and within this is CellClickAction which can be set for the whole tree. It seems to work the same as setting it for the individual node as I showed above but I think this is cleaner.
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?