How to Datagridview Header Template Events

Posted by Jayakumars under ASP.NET on 6/10/2011 | Points: 10 | Views : 2597 | Status : [Member] [MVP] | Replies : 2
hi

I need When i click gridview

<asp:TemplateField HeaderText ="Title"> Field i will open popup which event raise
here how to include client side gridview event i am search net CellClick event
but did not able to access this how will do this.

Mark as Answer if its helpful to you


Responses

Posted by: Ndebata on: 6/10/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
In a template column you can raise the events from the control inside the Template.
Like a normal control both client side and server side events can be raised.
Lets say you have a template column like this
<asp:TemplateField>

<HeaderTemplate>
<asp:ImageButton ImageUrl="~/flag_green.png" ID="himg" runat="server" OnClick="headerimg_click" />
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
</ItemTemplate>
</asp:TemplateField>


Thanks,
Debata

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 6/10/2011 [Member] [MVP] Bronze | Points: 25

Login to post response