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.
Loading
Lalit MPosted Mar 15, 2010, 8:00 AM
Amit ChoudharyPosted Mar 15, 2010, 7:54 AM
Here how create a grid programmatically bind it to sqldatareader and add it to form from code behind:
{
SqlCommand cmd = new SqlCommand("select Text from Menu", cn);
Please mark as answer if it helps you.