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

To get the values in two different controls to match which control you use it?

1002


What are query strings used for?

896


Is asp.net different from asp? If yes, explain how?

971


Is post back in asp.net?

921


Differentiate strong typing and weak typing

892


Why do you use the app_code folder in asp.net?

1041


Which adapter should you use, if you want to get the data from an access database?

938


Where is the session stored?

1049


What is a web api?

1010


What are the Types of object in asp

1074


What is difference between cache and session?

914


How to make paging concepts in datagrid in ASP.NET?

986


How can I have a particular web page in an asp.net application which displays its own error page?

1055


Describe the diffeerence between inline and code behind?

959


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6538