Hi Guys:
I am building a treegrid column with following code(pls make attention to "SWT.CHECK" style):
GridViewerColumn column = new GridViewerColumn(v, SWT.CHECK|SWT.CENTER);
column.getColumn().setWidth(60);
column.getColumn().setText("test");
it will display checkbox seen in the column.
but in some rows I do not want to display the checkbox seen,and I tried to hide the seen with following code,but it can not work,how should I do to hide the seen?if there is not way to hide seen with SWT.CHECK,how to build this column with checkbox(only click with one,but not CheckboxCellEditor with check or uncheck image)?
column.setEditingSupport(new CheckEditingSupport(v) {
protected boolean canEdit(Object element) {
return true;
}
protected CellEditor getCellEditor(Object element) {
return null;
}
protected Object getValue(Object element) {
return false;
}
public void setValue(Object element, Object value) {
//....
}
});