Dec 10, 2008, 5:14 PM
[CLOSED] Coolite Button inside GridView TemplateField
Hi there !
Is it possible to use Coolite Buttons inside a TemplateField of an asp-GridView ?
I'm doing somehting like this:
Alfonso Penunuri.
Is it possible to use Coolite Buttons inside a TemplateField of an asp-GridView ?
I'm doing somehting like this:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" BackColor="White"
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3"
DataKeyNames="Pais" DataSourceID="SqlDataSource1" GridLines="Vertical">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<Columns>
<asp:BoundField DataField="Pais" HeaderText="Pais" ReadOnly="True"
SortExpression="Pais" />
<asp:BoundField DataField="Descripcion" HeaderText="Descripcion"
SortExpression="Descripcion" />
<asp:BoundField DataField="ValidaFase1" HeaderText="ValidaFase1"
SortExpression="ValidaFase1" />
<asp:TemplateField>
<ItemTemplate>
<ext:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Button" AutoPostBack="true" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
But the server-side code for the click event of the button is never executedprotected void Button3_Click(object sender, EventArgs e)
{
string a = "Hi There";
}
Cheers !Alfonso Penunuri.