Problem with getting onclick event from nested datagrid

V

Vili

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/247reference/a.aspx?u=http://www.standardio.org/article.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
 
A

amitsdeo

hey guys

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

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top