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 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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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...
| |