How to manipulate a gridview in asp.net when the columns in the gridview are generated during runtim

Posted by Nandini on Stack Overflow See other posts from Stack Overflow or by Nandini
Published on 2009-09-24T10:47:22Z Indexed on 2010/05/07 6:08 UTC
Read the original article Hit count: 249

Filed under:
|

Hi guys, In my application,i have a gridview in which columns are created at runtime.Actually these columns are created when i am entering data in a database table. My gridview is like this:-

Description | Column1 | Column2 | Column3 | ...... |....... |.........

Input volt | 55 | 56 | 553 |........

Output volt | 656 | 45 | 67 |

where Column1,Column2,column3 may vary during runtime.i need to enter values to these columns during runtime.But i cant bind these columns because these are created during runtime. The first column "Description" will not change.It will remain constant.For each description,there will be values for each column.At last these data will be saved to the database.How to add columns in the gridview during runtime?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net