|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
problem traping event in child controlhello everybody...
I am develooping a kind of asp.net page in which i want to have datagrid inside a datagrid. Thsi i have somehow managed to develop. Now what i want is to have the functionality for the inner datagird to have the column called actions in which some image buttons are created. I want to handle the click event of these image buttons which i could not... How ever if I put these image buttons on the parent grid then the events are fired as desired. Can any one out there who can help me out of this hell. Its very urgent and need quick feedback Thanks in advance... Regards Sunil Pandita Software Engineer (OTS Solutions Pvt. Ltd. ) Hi Sunil,
In this sample I placed the child datagrid in a separate ascx that handle its own events http://www.societopia.net/Samples/DataGrid_Hierarchy.aspx If you do it this way then you can have the child datagrid raise events that the parent form can consume like I did in this sample: http://www.societopia.net/Samples/DataGrid_ChildControlsEvents.aspx If you are developing in ASP.NET 2.0, you might as well migrate to the GridView. Here is a sample in ASP.NET2.0: http://www.webswapp.com/codesamples/aspnet20/nestedgridviews/default.aspx Show quoteHide quote "sunil" wrote: > hello everybody... > > I am develooping a kind of asp.net page in which i want to have datagrid > inside a datagrid. Thsi i have somehow managed to develop. Now what i want is > to have the functionality for the inner datagird to have the column called > actions in which some image buttons are created. I want to handle the click > event of these image buttons which i could not... How ever if I put these > image buttons on the parent grid then the events are fired as desired. Can > any one out there who can help me out of this hell. > > Its very urgent and need quick feedback > > Thanks in advance... > > Regards > Sunil Pandita > Software Engineer > (OTS Solutions Pvt. Ltd. ) >
DataMappingType in the DataSet Designer
One page - edit & insert return url value Display a record - several questions Show ***** only if have a password How do I debug apsx pages? HyperLinkField and FindControl using 'sender' object on event fires FormView - initial template Gridview can't format a date |
|||||||||||||||||||||||