Click here to Skip to main content
15,352,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to generate gridview at runtime,???i dont want to show the grid in my design page.
please help me...?

1. create a Gridview
2. create a dataset
3. store the results from SQL query into dataset
4. provide datasource of gridview as dataset
5. bind data with Gridviewcontrol

Step 1:
Gridview myGv = new GridView();

Step 2-5 is done here:
how to create columns dynamically in a grid view[^]
u can juat create
GridView gdv = new GridView(); in code behind and can perform operations wat ever u want.
sanug 6-May-10 2:49am
i am unable to see grid at runtime

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900