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 state management react?

1032


How to reduce the width of textbox in editcommandcolumn of datagrid?

1008


Which is faster viewdata or viewbag?

996


What is role-based security in asp.net?

1078


What’s the use of “GLOBAL.ASAX” file?

1097


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

1072


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

1076


Explain the flow of processing of the request? : asp.net mvc

974


How can we update records in gridview?Is there any appropriate code for it?

2168


3. What goals do you have in your career?

1855


What is razor? : asp.net mvc

1041


What is AutoEventWireup attribute for ?

1023


How to you can limit Access to Web API to Specific HTTP Verb?

1191


What are Authentication and Authorization?

1108


What is custom events? How to create it?

1056