DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 14 Jun 2007 20:14:27 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.buildingcontrols        back       

Thread Index
  1    unknown
          2    MasterGaurav \(www.edujini-labs.com\)
          3    unknown
                 4    MasterGaurav \(www.edujini-labs.com\)


CreateChildControl() fires First   
i have develop a sharepoint web part using class library.i add
controls programatically.when i select a item in dropdownlist and save
it to the datase.it sved the first item of the dropdownlist,not the
selected item.as my experience this happen due to the inoder sequence
of  CreateChildControl() fires.Can any one help to solve this materr?
Date:Thu, 14 Jun 2007 20:14:27 -0700   Author:  

Re: CreateChildControl() fires First   

>i have develop a sharepoint web part using class library.i add
> controls programatically.when i select a item in dropdownlist and save
> it to the datase.it sved the first item of the dropdownlist,not the
> selected item.as my experience this happen due to the inoder sequence
> of  CreateChildControl() fires.Can any one help to solve this materr?



Where are you adding the controls?
Where are you binding the data?

Ensure that the control is created in CreateChildControls.

-- 
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Sat, 16 Jun 2007 07:46:09 +0530   Author:  

Re: CreateChildControl() fires First   
On Jun 16, 7:16 am, "MasterGaurav \(www.edujini-labs.com\)"
 wrote:

> >i have develop a sharepoint web part using class library.i add
> > controls programatically.when i select a item in dropdownlist and save
> > it to the datase.it sved thefirstitem of the dropdownlist,not the
> > selected item.as my experience this happen due to the inoder sequence
> > of  CreateChildControl()fires.Can any one help to solve this materr?
>
> Where are you adding the controls?
> Where are you binding the data?
>
> Ensure that the control is created inCreateChildControls.
>
> --
> Happy Hacking,
> Gaurav Vaish |www.mastergaurav.comwww.edujini-labs.comhttp://eduzine.edujini-labs.com
> -----------------------------------------


i have created grid inside the create childcontrol().and also i have
bind it there.i anable the editbutton and at the edit event i have
added a dropdown list to the cell
Date:Mon, 25 Jun 2007 01:24:41 -0700   Author:  

Re: CreateChildControl() fires First   

> i have created grid inside the create childcontrol().and also i have
> bind it there.i anable the editbutton and at the edit event i have
> added a dropdown list to the cell



Are you rebinding the grid? I must be rebound everytime... unconditionally. 
And after the "Edit" is performed, it must be rebound (with appropriate 
EditItemIndex set) again.

-- 
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Tue, 26 Jun 2007 22:19:18 +0530   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us