[Message Deleted]
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
[Message Deleted]
-
[Message Deleted]
No need to write query for each template field. Just mention the DataSource in the asp:GridView tag and define the DataSource seperately.. U can assign the respective column value to each template field using the following method. <asp:TemplateField HeaderText="Status"> <ItemTemplate> <asp:Label ID="lblStatus" runat="server" Text=<%# Eval("Column name") %> /> </ItemTemplate> </asp:TemplateField> U can also specify the DataSource in cs file as following if u use datatable/dataset as datasource. Gridviewname.DataSource= DataTablename/DataSetName; Gridviewname.DataBind();
Yazhini