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 mta?
What is asp.net and ado net?
Can we override the enablepartialrendering property of the scriptmanager class?
Explain the use of resource manager class in .net.
What is parse in asp.net?
Where the viewstate is stored after the page postback?
Explain the use of errorprovider control in .net?
Why do we need master page in asp.net?
Is asp.net 64-bit enabled? How?
What is the concept of view state in asp.net?
Explain difference between dataset and datareader?
In which event of page cycle is the viewstate available?
Where session variables are stored?
Explain the differences between managed and unmanaged code?
How does session state work in asp.net?