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
What is ipostback?
To bind columns manually which tags do you need to add within the asp:datagrid ?
Can a .net web application consume java web service?
Define page fragment caching?
What are the advantages of asp.net mvc framework? : asp.net mvc
Explain about asp.net 2.0 themes?
How would you turn off cookies on one page of your website?
How you can access the properties and controls of master pages from content pages?
What is x xss protection?
Which is the best institute to learn Microsoft Technologies and the faculty if you Know?
What is base class of .net?
What is another word for redirect?
What is the difference between exe and dll?
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
What are triggers of an updatepanel?