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 is autopostback true?

614


Can you explain page lifecycle in net?

510


Can we override the enablepartialrendering property of the scriptmanager class?

646


Distinguish between Server-side and Client-side code?

555


What is the syntax for datagrid and specifying columns?

2095






What is master page in dtp?

553


What is IPostBack? How to use it?

602


Explain asp.net page life cycle?

617


Is asp.net and .net the same?

516


Explain the difference between value type and reference type?

266


What is preprocessor in .net?

539


What are the uses of reflection?

581


Why do we use web config?

526


Why is it preferred to not use finalize for clean up?

565


Explain parts of assembly?

558