How do you bind array to gridview? Will it works?
Answer Posted / uma
all the answers are correct, but its not write way to store
array to grid,if u insert data into grid view as the above
mension answers expect first one answer, the data will be
diaplayed in column wise, actually the data in grid view is
displayed in rowwise, so we convert array data into a
spesfic datasource like lists,generic list etc;
int32[] arr=new int32[10];
arr[1]=2;
arr[2]=3;
list<> lt=new list<arr>
lt.add(arr[1]);
lt.add(arr[2]);
GridView1.DataSource = lt;
GridView1.DataBind();
| Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
What are the types of session in asp.net?
A Web Service Can Only Be Written In .net. Is it True??
What is the life cycle of an asp.net page?
Explain how to prepare culture-specific formatting in .net.
What does asp in asp.net stand for?
What is the difference between c# and .net?
To redirect the user to another page which method do we use without performing a round trip to the client?
What is the use of data set in asp.net?
How do you design a website with multilingual support in ASP.NET ?
Define tracing.
What describes a query?
How to send a DataReader as a parameter to a remote client ?
Which is better asp.net or php?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
What is the best Macanism to clear the Cache in asp.net