Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding a usercontrol in a gridview
Message
From
22/08/2014 12:55:22
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Binding a usercontrol in a gridview
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01606284
Message ID:
01606284
Views:
48
Hi All -

I thought I would save myself some time by creating a usercontrol for a commonly used dropdownlist, but it seems like it may be more trouble than its worth. The UC consists simply of a DDL, a SQLdatasource, and a required field validator. I can manage to use it OK when it is placed directly on a form and doesn't need to be bound to any existing data. However I also need to use it inside the edit template of a gridview. In this case I can't figure out how to bind it to the current selected value in the row. The gridview is populated via code behind. I am about ready to abandon this idea unless someone here can illustrate how this is done. (I posted on the MS Forums but so far have not received an answer.)

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform