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 is the adavantage of using ASP.NET routing?
What is the difference between viewstate and hidden field in asp.net?
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
What is the file through which you can customize your asp.net application?
Can I tap into other windows livetm services?
What do you mean by authentication?
What is the displayafter property in updateprogress control?
Less than one page, how many windows will you be able to maintain?
Can you use c# without .net?
What are the differences between the response.write() and response.output.write()?
What are the security types in asp.net?
What is a 307 redirect?
Define resource files.
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is asp.net mvc? : asp.net mvc