hi there
i have a web page.i want to have a gridview in it,but i want to design my gridview and bind it in code_behind.for example any record in gridview that must have 2 rows and 1 column. row and column show a field of determined record.i want to bind it with sqldatareader.
Design gridview in code_behind
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 15, 2010, 3:54 AM EDT
Here how create a grid programmatically bind it to sqldatareader and add it to form from code behind:
Please mark as answer if it helps you.
Lalit MRank #1,186 · 1.5K reputationPosted Mar 15, 2010, 4:00 AM EDT