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

Answer Posted / mallu

Dim i As Integer
Dim fib(10) As Integer

fib(0) = 1
fib(1) = 1

For i = 2 To 10
fib(i) = fib(i - 1) + fib(i - 2)
Next

Me.grdResults.DataSource = fib
Me.grdResults.DataBind()

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between clr & cts?

541


How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

524


Explain what are webservices?

545


What are custom controls?

533


What is a page life cycle?

567






What parameters can you pass in the url of the api?

661


What is the difference between web.config and machine.config in ASP.NET?

600


Is data edited in the Repeater control?

588


How to bind all the binding controls in a page at once in ASP.NET?

529


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

1751


What is viewstate? What does the “enableviewstate” property do?

524


What is data control in asp.net?

516


Explain the updatepanel?

583


What is the best Macanism to clear the Cache in asp.net

710


What are the new features implemented in ASP.NET?

607