473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Firing events for child controls in a DataGrid

Hi folks,

Apparently, when you have a child control inside of a DataGrid, the event
handler for the control does not work. I want to put a child control
(checkbox, dropdownlist, etc.) into my datagrid and have the value selected
to immediately fire an event and immediately update my database.

For example, if a checkbox is checked (in a DataGrid there would be a
checkbox column with a checkbox in each row), an event would be fired to
update the database which in this case would have a boolean value indicating
whether the checkbox had been checked or unchecked.

thanks,
Glenn
Jul 19 '06 #1
2 1665
Did you try the ItemCommand event of DataGrid?

"glenn" wrote:
Hi folks,

Apparently, when you have a child control inside of a DataGrid, the event
handler for the control does not work. I want to put a child control
(checkbox, dropdownlist, etc.) into my datagrid and have the value selected
to immediately fire an event and immediately update my database.

For example, if a checkbox is checked (in a DataGrid there would be a
checkbox column with a checkbox in each row), an event would be fired to
update the database which in this case would have a boolean value indicating
whether the checkbox had been checked or unchecked.

thanks,
Glenn
Jul 19 '06 #2
No, I have not tried the ItemCommand.

I will give it a shot ...

Thanks,
Glenn

"dotnettester" wrote:
Did you try the ItemCommand event of DataGrid?

"glenn" wrote:
Hi folks,

Apparently, when you have a child control inside of a DataGrid, the event
handler for the control does not work. I want to put a child control
(checkbox, dropdownlist, etc.) into my datagrid and have the value selected
to immediately fire an event and immediately update my database.

For example, if a checkbox is checked (in a DataGrid there would be a
checkbox column with a checkbox in each row), an event would be fired to
update the database which in this case would have a boolean value indicating
whether the checkbox had been checked or unchecked.

thanks,
Glenn
Jul 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: szabelin | last post by:
Hello, My user control contains DataGrid. DataGrid contains child user controls. I am not getting postback events in the child controls. I get a breakpoint hit in main control's Page_Load,...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
2
by: Juan Romero | last post by:
Hey guys, I am working on a web custom control that basically draws a table (ASP Table) with a few child controls in the cells. I have a command button inside one of these cells. The problem I...
3
by: Mike | last post by:
Hi, I am adding controls dynamically in a WebForm, but none of these controls' events fire. Here is the class code I am using. I have tried so many things, but nothing works :-( namespace...
0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
1
by: Peter Rilling | last post by:
I have an interesting problem with a datagrid. It is the standard chicken-and-the-egg problem. I have this page with two datagrids. It essentially defines a parent-child relationship. The...
2
by: Deepesh | last post by:
Good day, I have a specific case of the DataGrid in my solution which is causing the ItemCommand Event Not Firing. So I'm creating a "Skinnable" set of controls. I seperate the actual ASCX file...
3
by: danc | last post by:
I have a datagrid with a checkbox and dropdown list in each row. Both set AutoPostBack to true and ItemCommand and OnSelectedIndexChanged events for these controls works fine when DataGrid is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.