Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the types of session in asp.net?

1012


A Web Service Can Only Be Written In .net. Is it True??

1113


What is the life cycle of an asp.net page?

964


Explain how to prepare culture-specific formatting in .net.

1016


What does asp in asp.net stand for?

1023


What is the difference between c# and .net?

1096


To redirect the user to another page which method do we use without performing a round trip to the client?

978


What is the use of data set in asp.net?

1001


How do you design a website with multilingual support in ASP.NET ?

1029


Define tracing.

1167


What describes a query?

980


How to send a DataReader as a parameter to a remote client ?

3503


Which is better asp.net or php?

1079


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

987


What is the best Macanism to clear the Cache in asp.net

1274