Last post Dec 11, 2008 12:07 AM by shashankgwl
Dec 07, 2008 05:27 AM|Kanthgemini|LINK
Hi this is the my Example can any one help me. this is the grid deriving from system.Web.UI.WebControls.CompositeDataBoundControls. while creating child controls i add some custom controls to the Grid like textColumn, textBoxColumn , checkBoxColumn and so
my problem is " while displaying the grid my checkbox column is not mainitaing the state.means forexample when i checked any checkbox its maintain the state but when i uncheck the checkbox its not maintaining in the grid.
can any one help me the problem is i added this checkBoxcollumn is to grid . Here one thing i specify Grid is deriving from system.Web.UI.WebControls.CompositeDataBoundControls and checkBoxColumn is deriving from
DataDisplayColumn and DataDisplayColumn is deriving from
ICustomTypeDescriptor and ColumnBase is deriving from Component and it is deriving from
for resolving the problem can i write LoadPostdata in CheckBoxColumn or not i tried but its not working .
why the checkBox only not maintaing the State ?
what i tried in checkBox column i implement IPostDataHandler but it is not called. for this also i have to register PostBack for this i tried to write In OnInit() but this method is not allowed in that checkBoxColumn.
Can any one help me its urgent? see the each class is deriving from whoom.
thanks is Advance.
Custom Control properties child controls
custom control extender
custom datasource control
Custom User Control
ASP .net 2.0
Dec 10, 2008 10:34 PM|Nai-Dong Jin - MSFT|LINK
From your description, it seems got trouble while performing the state maintenance in custom server control.
I suggest that you can try the following article which shares a step by step tutorial and samples on how to achieve that.
Dec 11, 2008 12:07 AM|shashankgwl|LINK
You seem to have not used RegisterRequiresPostBack only this registeration will make use of IPostBackDataHandler