How do you bind array to gridview? Will it works?

Answer Posted / senthilselvan

int[] arr = { 1, 2, 3, 4, 5, 6, 7, 8 };
GridView1.DataSource = arr;
GridView1.DataBind();

try this.

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A Web Service Can Only Be Written In .net. Is it True??

814


Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?

799


What is difference between cookies and cache?

745


How to Insert/Add in ASPXgridview

749


Is it possible to create web application with both webforms and mvc?

719


What is the use of web.config and machine.config files?

843


Is it true that a Web service must be written in .NET or not?

807


What are the new data controls in asp.net 2.0?

708


Are xaml file compiled or built on runtime?

729


What is page fragment caching?

717


Who can consume WebAPI?

757


what are the security certificates used in webservices?

1719


What do you mean by serialize and marshalbyref?

761


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

777


Describe how passport authentication works.

779