how we can fire event in databound column in datagrid without using button?
Answer / Ankur Gupta
You can achieve this by using a TemplateField in your GridView and setting the AutoPostBack property of the control you want to respond to events (like CheckBox, DropDownList, etc.) to true. Here's an example:
```csharp
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField HeaderText="My Column">
<ItemTemplate>
<asp:CheckBox ID="chkColumn" runat="server" AutoPostBack="True" OnCheckedChanged="chkColumn_CheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
```
In the above example, a CheckBox is used inside a TemplateField to respond to events without using a Button.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile
Explain how does .net mobile work? : Microsoft dot net mobile
HI THIS IS THIRUMAL. I AM COMPLETED MY MCA IN 2009 WITH 64%. NOW I AM LOOKING FOR A JOB(FRESHER)IN HYDERABAD.PLEASE IF YOU FIND ANY OPENINGS IN ANY COMPANY SEND IT TO MY MAIL ID PLEASE.. SKILL SET : C,C++,C#.NET,ASP.NET,ADO.NET,SQL SERVER, SSIS,SSRS EMAIL ID : THIRU104@GMAIL.COM THANKS & REGARDS D.THIRUMAL
What is CLR,MSIL and Jit Compiler and their roll in .net
which would be the best to use inproc,outproc or sql server
what is tracing? Where it used?
What does the term "green architecture" mean? : Dot net architecture
What is .net transaction?
What is the mesi? : .NET Architecture
how to make and display a form without title bar?
what is class and object explain with example?
inprocess vs out process session state : Dot net architecture