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

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top