check box event inside datagrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thfy
    New Member
    • Nov 2012
    • 1

    check box event inside datagrid

    Code:
    <asp:TemplateColumn> 
        <ItemTemplate> 
            <asp:CheckBox id="ckNotificar" runat="server"
                AutoPostBack="true"
                OnCheckedChanged="Check_Clicked"
                Checked='<%#
    container.dataitem("Notificar")%>'
                Text="Notificar"></asp:CheckBox>
        </ItemTemplate> 
    </asp:TemplateColumn>
    ------------------------------------------------------------------

    in my VBCode I have declared :
    ---------------------------------------------------------------
    Code:
    Public Sub Check_Clicked(ByVal sender As Object, ByVal e As
    System.EventArgs)
    
    End Sub

    please anyone assist
    Last edited by Frinavale; Nov 2 '12, 01:32 PM. Reason: Formatted code so that it is easier to read
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    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.

    -Frinny

    Comment

    • andrewpattinson
      New Member
      • Aug 2012
      • 6

      #3
      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
      Last edited by Rabbit; Nov 8 '12, 04:21 PM. Reason: Link removed per forum policy.

      Comment

      Working...