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

Will the asp.net validators run in server side or client side?

1134


How can I have a particular web page in an asp.net application which displays its own error page?

1109


What are session cookies?

1006


Do cookies store passwords?

923


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

1023


Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc

1101


How you can add an event handler?

968


Difference between using directive vs using statement?

987


What are the main differences between asp and asp.net?

1034


Where you store Connection string in "Web.Config" file in ASP.NET?

1058


Explain what is an abstract class?

1014


What's the use of response.output.write()?

1263


What is a web api?

1049


How to send a DataReader as a parameter to a remote client ?

3407


What is smpte vc-1?

1030