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 the difference between cache and cookies?

967


Do you know about caching with the datasource controls?

866


What is the difference between response.redirect and server.transfer?

987


How can we communicate with each server in N-tier Architecture? and what are the methods?

2205


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

944


Explain the steps to be followed to use passport authentication.

1013


How you can access the values from the Repeater control in ASP.NET?

1037


How is application management and maintenance improved in asp.net 2.0?

971


How can I open ashx file in mobile?

1108


Why is the standalone environment only useful during the development process?

1782


Give me one example of Web API Routing?

1038


What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

924


How dataadapter.fill works?

991


What is the difference between user control an custom control?

1080


What is autopostback in dropdownlist in asp net?

954