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 / nazakat ali

Set AutoGenerateColumns Property to false on the datagrid tag and then use Column tag and an ASP:databound tag
< asp:DataGrid runat="server" id="ManualColumnBinding" AutoGenerateColumns="False" >
< Columns >
< asp:BoundColumn HeaderText="Column1" DataField="Column1"/ >
< asp:BoundColumn HeaderText="Column2" DataField="Column2"/ >
< /Columns >
< /asp:DataGrid >


<asp:DataGrid id=ManualColumnBinding runat="server" AutoGenerateColumns="False">
<COLUMNS> <asp:BoundColumn HeaderText="Column2" DataField="Column2"></asp:BoundColumn>
</asp:DataGrid>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in which protocol ASP.NET WEB API Work?

1074


How is a session stored and maintained in asp.net?

959


Explain the asp.net mvc request life cycle? : asp.net mvc

958


Is it possible to apply themes to an asp.net application? If yes, then how?

980


i want the asp.net technical questions and answeres

2021


What are the types of authentication in asp.net?

973


What does the hotspot class in .net do?

957


How can you pass multiple complex types in Web API?

1007


What is asp.net caching?

981


What is the difference between application state and caching?

1027


What is css and what is it used for?

958


What is data caching?

930


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

1123


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

1053


What is the advantage of mvc over asp.net? : Asp.Net MVC

944