i've taken over a project that was originally coded by another developer. for use in the main application, he wrote a custom control in VB. it 'sort of' uses databinding in that he wrote a method called DataBindMe that he calls from both the Load handler of the control and within the application. it's basically a makeshift SpreadSheet control that at some point needs to handle ~2700 records but is very slow in doing so. right now it inherits from both WebControl and the IPostBackEventHandler interface.
because i hate VB, i'm attempting to rewrite the control in C# and at the same time trying to speed the thing up. so this is what i need to know..
will using the built in databinding stuff speed up the control in any way? if so, how do i go about implementing the databinding? there seems to be a few ways to do it. i saw one example that simply overrides both the CreateChildControls and DataBind methods (which seem to do the same thing ??). another has the control inheriting from the DataBoundControl class. yet another has the control inheriting from the IDataItemContainer interface. i mean which is it? how do you know when to use one method over another? and is one method faster than the others?
View Complete Post