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 difference between or and orelse?
How do I publish my asp.net application to my isp's web server?
What is break mode?
What is page fragment caching?
What is asp net theme?
What are the session variables?
How to use push notification?
What are the 3 levels at which content pages can be attached to Master Page?
How does viewstate work?
List the asp.net validation controls?
What are the advantages and limitations of query string?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
Explain cashing in asp.net.
Define asp.net caching?
What is a uri query?