I am using the DevExpress WinForms XtraTreeList control, and have several columns which contain a Check Box, i.e. I have set the ColumnEdit property of the Columns to a RepositoryCheckEdit.
How can I programatically access the value of a particular CheckEdit cell and set it to True/False?
For text cells, I have used TreeListNode[index] = "string" (which is the same as TreeListNode.SetValue(index, "string")), but TreeListNode[index] = boolean seems to have no effect on the CheckEdit cell.
Any help would be much appreciated.
Turns out neither one of the suggestions worked. Here's what I did to solve the problem.
For the Column cells to display a CheckBox, instead of setting the ColumnEdit property to RepositoryCheckEdit, I set the Column's UnboundType to Boolean, i.e.:
TreeListColumn.UnboundType = DevExpress.XtraTreeList.Data.UnboundColumnType.Boolean;
Then, in order to set the CheckEdit's value:
TreeListNode[index] = true; //false
PS - I believe the other methods didn't work 'cause of the RepositoryItemCheckEdit. Apparently, there's some other way to set the CheckEdit value when this is the case (which I have not been able to find).
Thank you for the interest and suggestions.