473,395 Members | 1,972 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,395 software developers and data experts.

datagrid inside user control wont fire events

Dear Professionals,

I have placed my datagrid :

....
<asp:Datagrid ID="DGEdu" runat="server"
OnDeleteCommand="DGEdu_Remove"
OnItemDataBound="DGEdu_ItemDataBound"
OnItemCommand="DGEdu_OnItemCommand"
AutoGenerateColumns="false"
ShowFooter="True">
<Columns>
....
</Columns>

in a user control. <%@ Control Language="VB"%> I include this control
on my main page:
<%@ Register TagPrefix="EducationControl"
TagName="EducationDG" Src="uc_education.ascx" %>

and in the middle of the html part i show it:
<EducationControl:EducationDG id="DGEdu" runat="server"/>

Now for some reason when the button clicks inside datagrid are made -
the page just does a postback but does not seem to go to the
DGEdu_OnItemCommand, as I tried to print something there and nothing
happened. Seems that button events inside datagrid are not really
attached to the datagrid events anymore. I think there is something
missing, like call delegations from main page to user component, but i
have no idea how to do so. If anyone knows anything to help, please ...
Datagrid was copied out of main so it was working fine before, it loads
from a non-empty dataset and seems to do everything but handling its
button clicks.

Thank you,
A.M.

Nov 21 '05 #1
1 2025
AM

Not that you are not welcome here, however you have much more change on
answers in the newsgroups

microsoft.public.dotnet.framework.aspnet and
microsoft.public.dotnet.framework.aspnet.webcontro ls

Although the last seems the better for your question would I sent in in your
situation crossposted. One message to both newsgroups.

I hope you get a lot of answers.

Cor
Nov 21 '05 #2

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

Similar topics

3
by: bardo | last post by:
I have a Datagrid that is inside a panel. I want to use the keyDown event to reconize the arrow keys. But I have no luck at all. The problem is that the keydown event won't fire at all, unless I...
6
by: Mark | last post by:
I have been working for quite some time on this issue which in theory should be quite simple. The problem is that the Cancel and Save events are not fired when their respective buttons are...
0
by: Daniel Armstrong | last post by:
Hello, I have a usercontrol that I have built that has a single generic datagrid. When setting up the inital properties I build the template columns for the datagrid dynamically so it can...
0
by: Jason Chancellor | last post by:
Fairly new to asp.net so I'm sure what I'm doing wrong is silly... I have created a user control which contains its own buttons, textboxes, etc... and handles its own events. If I add just one...
2
by: andla | last post by:
Hi, How does events fire in a datagrid. I know about the problem if turning the viewstate off the events wil not fire properly even if I rebind the control in every postback. S then I started...
3
by: Andrea Williams | last post by:
I still consider myself to be a novice with ASP.NET, and going through the samples in my books is not helping me spot the problem. I very often find my answer after I've posted so maybe it will...
7
by: Lars Netzel | last post by:
If I put a checkbox in a datagrid (ASP.NET) and set the Autopostback to true I can catch OnChange event on checkbox but how do I then catch what DataGridItemIndex is? Can I use some Event in the...
2
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
5
by: Jeff User | last post by:
Hello ..NET 1.1, VS 2003, C# & asp.net I have tried to follow msdn instructions and samples but I can not get an event to fire for this button on the datagrid. There has to be something obvious...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
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...

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.