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.
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...
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. :)
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?