private TreeStore getStore(int columns, bool addCheckbox)
{
//prepares the TreeStore for required columns
Type [] types = new Type [columns];
for (int i=0; i < columns; i++) {
if(addCheckbox && i == 1)
types[1] = typeof (bool);
else
types[i] = typeof (string);
}
TreeStore myStore = new TreeStore(types);
return myStore;
}