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 is mta?

1054


What is asp.net and ado net?

1011


Can we override the enablepartialrendering property of the scriptmanager class?

1127


Explain the use of resource manager class in .net.

985


What is parse in asp.net?

1087


Where the viewstate is stored after the page postback?

1066


Explain the use of errorprovider control in .net?

969


Why do we need master page in asp.net?

943


Is asp.net 64-bit enabled? How?

1062


What is the concept of view state in asp.net?

1012


Explain difference between dataset and datareader?

1054


In which event of page cycle is the viewstate available?

1022


Where session variables are stored?

987


Explain the differences between managed and unmanaged code?

1051


How does session state work in asp.net?

1033