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

Problem with getting onclick event from nested datagrid

Hi all

I have a datagrid with nested datagrid. How do I get event from dgNested
button?

I used example from
http://www.dotnet247.com/247referenc...le.aspx?id=155

<asp:datagrid id="dgMaster" runat="server" AutoGenerateColumns="False">
<columns>
....
<asp:datagrid id="dgNested" runat="server"
AutoGenerateColumns="False" OnItemDataBound="itemEvent"
OnItemCommand="itemCommandEvent" EnableViewState="False">
<columns>
....
<asp:templateColumn><FooterTemplate><Asp:Button text="update"
Runat="Server" ID="updateAll"
CommandName="ud"</asp:button></asp:FooterTemplate></asp:templateColumn>
</columns>
....
</asp:datagrid>
....
</asp:datagrid>

Codebehind:

Public Sub itemEvent(byVal Source As Object, ByVal e as DataGridItemEvent)

'This works

End Sub

Public Sub itemCommandEvent(byVal Source As Object, ByVal e as
DataGridCommandEvent)

'This does not work

End Sub
Apr 2 '06 #1
1 1187

hey guys

has any one found solution this problem
let me know plzzz i am kind stuck on the same problem.

thanks


Vili wrote:
Hi all

I have a datagrid with nested datagrid. How do I get event from dgNested
button?

I used example from
http://www.dotnet247.com/247referenc...le.aspx?id=155

<asp:datagrid id="dgMaster" runat="server" AutoGenerateColumns="False">
<columns>
...
<asp:datagrid id="dgNested" runat="server"
AutoGenerateColumns="False" OnItemDataBound="itemEvent"
OnItemCommand="itemCommandEvent" EnableViewState="False">
<columns>
...
<asp:templateColumn><FooterTemplate><Asp:Button text="update"
Runat="Server" ID="updateAll"
CommandName="ud"</asp:button></asp:FooterTemplate></asp:templateColumn>
</columns>
...
</asp:datagrid>
...
</asp:datagrid>

Codebehind:

Public Sub itemEvent(byVal Source As Object, ByVal e as DataGridItemEvent)

'This works

End Sub

Public Sub itemCommandEvent(byVal Source As Object, ByVal e as
DataGridCommandEvent)

'This does not work

End Sub


Apr 16 '06 #2

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

Similar topics

3
by: Jamie Jackson | last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The onclick event that I'm inserting works correctly in Opera, but not in FF or IE. I'm retroactively adding the statement...
12
by: gg.WS | last post by:
Hi I have a form with 140 labels. Each label has got an OnClick event that is different for each of these labels. Now I want to use the form as a subform of an other form. For this reason I have...
0
by: Chris | last post by:
I've been searching all over and think I am close, but keep getting the error "Index out of range" when trying to reference a nested datagrid when an OnEditCommand event is raised. When the...
1
by: ze colmeia | last post by:
Hi all, I have a little javascript function that assigns the value from a parent window to a field on a iframe. The function is on the parent page and its called by a button onclick() event on the...
1
by: saurabhbpl | last post by:
hi, i have a html form in which 2 radio button and 6 text fields.i face a problem with Onclick event. I want when i click on 1st radio button it display only four text field in the form and click...
7
by: Moses | last post by:
Hi Everybody, I have a problem with onClick event which works in FF and does not work in IE, Here I have giving the details Please help. I am creating a <aTag. dom_obj =...
2
by: swethak | last post by:
Hi, i am getting the problem when i used the onclick event in option tag.It is working fine in mozilla .But it is not working IE. Here is my code <script>
18
by: amritpalpathak | last post by:
I have made the html+javascript code.According to which when the page loaded the image size gets reduced to 50,50 and onclicking on it ,size increases to 500,500,but i done it with the one copy of ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.