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

Give an example of cookie abuse.

1121


What is the difference between CC and BCC?

1116


What are the advantages and limitations of query string?

1089


Can you change a Master Page dynamically at runtime?

1014


What is latest version of asp.net mvc? : Asp.Net MVC

1148


Is it right that ASP.NET Web API has replaced WCF?

1016


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

929


What are the different types of Caching techniques in ASP.NET?

1101


In which event are the controls fully loaded?

1051


Explain the difference between array and linkedlist?

1050


What is the difference between asp.net and mvc?

1164


How does asp net store session ids by default?

1039


What is application state?

975


Explain repository pattern in asp.net mvc? : asp.net mvc

1080


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

1157