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

List the types of authentication supported by asp.net?

529


Why session is used in asp.net?

534


How many types of sessions are there in asp net?

526


Explain the advantages of caching?

535


What is the part of url?

534






What do you understand from custom control?

613


What is session object? Describe in detail.

567


What is the difference between adding reference in solution explorer and adding references by using ?

579


What is asp.net localization?

503


How to register exception filter globally?

582


What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

662


Explain about asp.net caching?

577


What is the difference between user control and custom control?

487


How can you handle errors in Web API?

598


Define satellite assemblies.

587