Hi nagaraju60,
Ok let’s say 10 maximum columns.
But let me explain if you are generate 2 columns then how do you pass column name to the insert query and if its 8 then how do you pass column name to the insert query.
As we need to pass column name to the insert query since we are generating number of columns based on textbox value.
One option is you need to check condition 10 times and most important you can't assign column name randomly you have to assign sequentially.