Bubbling up custom events in datagrid

A

Anonymous Poster

I have a custom web control GridList which contains an array of derived
Datagrid controls. Each datagrid has an additional event OnRowSelect, fired
when the user double-clicks on the row. It passes an id back for the row in
its eventargs, by placing the row value into a hidden field, then generating
a fake click event on a hidden button to cause a postback via javascript.
This is turn fires the server-side click of the hidden button so I can act
on the event. This works fine.

I cannot for the life of me get this event to fire when the grid is placed
inside the GridList control. I've tried making a wrapper OnRowSelect for the
GridList to bubble up the Datagrid event, but it is never ever fired :( I
think its a postback issue but have no idea how to get around it :( I have
added an OnDataBind event to the GridList to let me bind each grid in turn
and this does fire, but the OnRowSelect won't even though the event is added
at the same time!?

TIA!

Simon
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top