In my table i am having 5 columns in common and adding some column on the fly (Depending on the input). when the process is reloaded all the column will be deleted and the default 5 columns is created and the other columns too. The script i am using for column deletion is as :
totalColumns = self.TBL_shotDetails.columnCount()
for index in xrange(totalColumns) :
self.TBL_shotDetails.removeColumn(index)
When running this lines of code, only the first two columns are getting deleted. And the rest are not getting deleted. Can anyone suggest me how to do this.