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
Describe session handling in a webfarm?
What is the basic difference between asp and asp.net?
What I need to create and run an asp.net application?
What are session cookies?
Can asp.net work on an nt server?
Securitywise What are the Enhancements in 2.0?
What is the difference between GridView and Repeater controls in ASP.NET?
What is a proxy in web service?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
What is the life cycle of web page?
What is preprocessor in .net? Where it use?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
What does it mean your session has timed out?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
What are sharepoint pages?