Hi J055,
Welcome to the MSDN newsgroup.
Regarding on the getting the original returned datasource object from
datasource control, I still think using the objectDataSource will be the
proper approach. However, if you want to create a cutsom Gridview control
and put most code logic in the GridView control itself, I think you should
consider override the "PerformSelect" method since this is the one be
called when perform databinding(from associated datasourcecontrol). And the
"GetData" method is used to get datasourceView from datasourcecontrol(has
been implemented by the base databound control):
#DataBoundControl.PerformSelect Method
http://msdn2.microsoft.com/en-us/lib...rols.databound
control.performselect(VS.80).aspx
#DataBoundControl.GetData Method
http://msdn2.microsoft.com/en-us/lib...rols.databound
control.getdata(VS.80).aspx
Also, if you're more concentrating on the pager's customization, you can
have a look at the "InitializePager" method which is helpful for
customizing pager:
#GridView.InitializePager Method
http://msdn2.microsoft.com/en-us/lib...trols.gridview.
initializepager(VS.80).aspx
BTW, it'll be helpful to use the reflector tool to inspect the control's
code logic , that'll help get a clear view on its structure.
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)