protected TreeStore getStore(int columns)
{
//prepares the TreeStore for required columns
//columns +1 for the checkbox col (not counted in columns)
Type [] types = new Type [columns+1];
//adding the checkbox col (not counted in columns)
types[0] = typeof (bool);
for (int i=1; i <= columns; i++) {
types[i] = typeof (string);
}
TreeStore myStore = new TreeStore(types);
return myStore;
}