By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,054 Members | 1,299 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,054 IT Pros & Developers. It's quick & easy.

check box event inside datagrid

P: 1
Expand|Select|Wrap|Line Numbers
  1. <asp:TemplateColumn> 
  2.     <ItemTemplate> 
  3.         <asp:CheckBox id="ckNotificar" runat="server"
  4.             AutoPostBack="true"
  5.             OnCheckedChanged="Check_Clicked"
  6.             Checked='<%#
  7. container.dataitem("Notificar")%>'
  8.             Text="Notificar"></asp:CheckBox>
  9.     </ItemTemplate> 
  10. </asp:TemplateColumn>

in my VBCode I have declared :
Expand|Select|Wrap|Line Numbers
  1. Public Sub Check_Clicked(ByVal sender As Object, ByVal e As
  2. System.EventArgs)
  4. End Sub

please anyone assist
Nov 2 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 9,731
I'm not sure what the problem is?

You can get the CheckBox that raised the event through the sender parameter.

Once you have that you can determine whether or not it is checked and do the necessary logic.

You haven't mentioned what the problem is so I can't help you much more than this.

Please elaborate.

Nov 2 '12 #2

P: 6
Data binding is used by almost all modern applications.It provides simple means to separate the data layer from the presentation layer. Generally, binding means connecting a graphical control property with a data object property. For example,if we have Product class, Label control can be bound to Name property of this control visit for more detail with example
Nov 8 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.