473,511 Members | 14,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

check box event inside datagrid

1 New Member
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)
  3.  
  4. End Sub

please anyone assist
Nov 2 '12 #1
2 1834
Frinavale
9,735 Recognized Expert Moderator Expert
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
Nov 2 '12 #2
andrewpattinson
6 New Member
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

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

Similar topics

1
1896
by: Dude | last post by:
I add a link button to the header of my datagrid as follows: If e.Item.ItemType = ListItemType.Header Then Dim myLink As New LinkButton() myLink.Text = "Add New" myLink.Attributes.Add("runat",...
1
1237
by: Somyos | last post by:
How can I check event clicking the 'X' button in the upper right hand corner of a window. and call function or sub before close web page. I'm using Asp.net on VS.NET Thank.
1
3812
by: Chumley Walrus | last post by:
I am trying to have the contents inside a datagrid cell line up properly, either center, align right or align left. But using something like HorizontalAlign="right" is illegal syntax for...
0
1121
by: rockdale | last post by:
private void dgrid_OnItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if(e.Item.ItemType ==ListItemType.Item||e.Item.ItemType ==ListItemType.AlternatingItem)...
5
6842
by: mabond | last post by:
Hi Can't believe I've not been able to find the answer to this in the on-line help. I have a CheckedListBox which, via a timer control, is populated with the names of files in a network...
2
5543
by: chatelain | last post by:
Ok a couple things I've got going: On the DataGrid1_CurrentCellChanged I add a button control to the datagridtextbox. This occurs when a mouse click happens inside the cell or the cursor enters the...
0
1095
by: Syed81 | last post by:
Hi All, I have used one textbox inside datagrid's itemtemplate.During its textchanged event i have did some calculations in code behind using add handler.I have set autopostback=true.But its...
1
12644
by: QuickBooksDev | last post by:
VB.NET 2005 DataGridView Checkbox - Check Event need to know check status I would like to use the DataGridView Checkbox like a normal checkbox. When someone clicks on it I would expect that I...
5
2377
by: venkateshcnpl | last post by:
Hi,I am New To This . I have to check the duplications of values entered in textbox which is placed inside the datagrid.And the Number of textbox is not constant it is dynamically added can any one...
2
2009
by: steven | last post by:
i've got a dropDownList that I'm trying to populate from my code behind as follows: uxVehicleColourEdit.DataSource = oDsLookups.Tables; if the dropDown is placed inside a datagrid, i get...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.