Editable Grid - Dynamic columns


I have a requirement in which the user enters any numerical value, let's say 4, so a grid should be created with four columns.
Likewise, he can enter n values, so n columns should be created. 

please let me know the implementation.

 Discussion posts and replies are publicly visible