Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2005, 03:25 AM
Authorized User
 
Join Date: Aug 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid As Child Control

I have created a composite control which inherits system.web.ui.webcontrols.webcontrol . The main control in this is a datagrid. The problem I have is that I need to execute the onitemcreated method against the datagrid. So I would like to know if anyone can help me with this, or offer any suggestions. I need to access the datagrid control and the datagriditemeventargs. I am at a complete loss. Thank you all. :(

 
Old August 23rd, 2005, 05:06 AM
Authorized User
 
Join Date: Aug 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have since learned that it is not possible to do what I would have liked (execute onitemcreated method against the datagrid), so, I worked around the problem by adding columns to the datagrid dynamically and setting cell properties like alignment and width then.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using DetailsView control to add record to Child megnin ASP.NET 1.x and 2.0 Application Design 0 September 5th, 2008 03:37 PM
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Handling events of child ctrls(chkBox) in DataGrid malikamjad ASP.NET 1.0 and 1.1 Professional 0 July 13th, 2006 09:56 AM
overlapping child control-problem pazzuzu Visual C++ 2 November 28th, 2005 04:17 AM
Accessing parent control functions from child badgolfer VS.NET 2002/2003 2 January 9th, 2004 07:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.