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
Can we use a static function with a non-static variable?
What is the use of web.config and machine.config files?
Distinguish between Server-side and Client-side code?
how to include timer or counting time to display next page in asp.net
Explain transparent caching with aop?
Explain difference between dataset and recordset?
Explain why datareader is useful?
What is a session in asp.net?
Differentiate between namespace and assembly.
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
Describe in brief .net framework and its components.
Explain the steps to be followed to use passport authentication.
What are the main differences between asp and asp.net?
Explain culture and uiculture values.
What is semantic gap?