Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gridview question

Status
Not open for further replies.

toptomato

Programmer
Jul 22, 2005
62
US
In the old days datagrid however using a dataset as a datasource would still required databind() before it can render on the page. Now a days, GridView using objectdatasource as its datasource doesn't require databind() in order for it to appear. It appears automatically. Is there a way to stop that behaviour and manually control when one wish to have it render.
 
I think you would have to not tie the gridview to a datsource. Then create your own dataadapter and dataset then fill it and bind that to the view.
 
Please try to be patient once you have asked a question - Tek-Tips isn't a help desk and people will reply when they feel like they want to.

As for the GridView, if you set up the connection and fill the DataSet (or DataTable etc) in code rather than using the designer then the code shouldn't actually be any different (i.e. a DataSource will still have to be specified and DataBind will still have to be called).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks guys,
appriciate your help.
My appologies for my impatience.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top