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
To get the values in two different controls to match which control you use it?
What are query strings used for?
Is asp.net different from asp? If yes, explain how?
Is post back in asp.net?
Differentiate strong typing and weak typing
Why do you use the app_code folder in asp.net?
Which adapter should you use, if you want to get the data from an access database?
Where is the session stored?
What is a web api?
What are the Types of object in asp
What is difference between cache and session?
How to make paging concepts in datagrid in ASP.NET?
How can I have a particular web page in an asp.net application which displays its own error page?
Describe the diffeerence between inline and code behind?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server