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...

What tags do you need to add within the asp:datagrid tags to
bind columns manually?

Answer Posted / anand gopal makwa munger

First set AutoGenerateColumn False and write code like given below.Suppose you want to bind ID and name.

<asp:DataGrid ID="Datagrid1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundColumn DataField="Id" HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Name" HeaderText="Name"></asp:BoundColumn>
</Columns>
</asp:DataGrid>

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Web API?

1092


Is react a template engine?

869


How does the service stream content?

973


Which property is used to identify the Page is Post Back in ASP.NET?

964


What is server components?

966


Which is faster viewbag or viewdata?

917


What is the difference between client-side and server-side validations in webpages?

945


How would ASP and ASP.NET applications run at the same time on the same server?

2445


What is mvc in asp.net interview question? : Asp.Net MVC

913


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2323


What are the different kinds of assemblies?

891


Why do we need asp.net?

977


What is asp.net web pages?

933


Explain what the contents of cookie?

1003


What is the basic difference between asp and asp.net?

966