0
我使用流動的GridViewGridView控件有不同的控制對同一列
<asp:GridView ID="gvDesign" runat="server" AutoGenerateColumns="False" Width="190px" ShowHeader="false">
<Columns>
<asp:TemplateField HeaderText="Title" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblText" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Count" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbRevCount" runat="server" Text='<%# Bind("Count") %>' OnClick="lbRevCount_Click"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
我需要在GridView的只有第一行有linkbutton.other行應該有一個label.currently將數據綁定我在所有的行上都有linkbutton,我可以實現這一點嗎?
標記此帖作爲答案,如果它幫助你。 –