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

What is asp net application object?

537


Explain the difference between value type and reference type?

263


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

520


Is it possible to migrate visual interdev design-time controls to asp.net?

563


What is globalization and localization in asp net?

494






Explain the difference between the web config and machine config.

625


Why we go for mvc instead of asp.net? : Asp.Net MVC

492


Give an example of cookie abuse.

599


what are the ihttphandler and ihttphandlerfactory interfaces ?

514


What are Session states available and its Uses?

1695


What does asp stand for in asp.net?

523


Explain the difference between overriding and overloading?

544


How is session id generated?

455


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

1673


How you will manage the state of ASP.NET controls?

570