Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here I have a problem with use of gridview in asp.net
i have to display a table as follows

______________
|ID |
|____________|
|1 |
|____________|
|Name |
|____________|
|Amol |
|____________|
|ID |
|____________|
|2 |
|____________|
|Name |
|____________|
|Sameer |
|____________|
I want This type of display using a gridview in asp.net
Please help
Posted

1 solution

I have tried taking a string[] a= {"ID","Name"};
and then
gridview1.rows[1].cells[1].text = a[0].tostring();
this is giving a error that index out of bound
 
Share this answer
 

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