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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controls on WebUserControls

Status
Not open for further replies.

simonB2010

Programmer
Jul 19, 2011
5
GB
Newbie here so feel free to laugh ...

I created a webusercontrol based on a GridView, so I now have a 'myGridView' WebUserControl.

Go to a new webform, add the control, and voila .. I now have my modified GV.

But ... no smarttag option to set datasource or autoformat etc.

There is an option to 'Edit User Control' but that changes the source file .. and to be honest that scared me, is it possible to block that option ? I don't want my source file being altered by error !

So have I missed something realy obvious, or am just barking up the wrong tree altogether ?

Can I create a WUC giving all the normal functionality of a GridView, that can be used multiple times within a page as seperate instances with seperate datasources ?

Many Thanks


 
To modify the gridview, you have to open the usercontrol, that is where the gridview lives, not the page.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top