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

Overringing the design-time Data binding?

Status
Not open for further replies.

MerlinB

Programmer
Dec 14, 2000
399
GB
If I bind a control (e.g. a data grid) to a data source at design-time, I cannot override this in code at run time.

The control gets the following data binding code at design-time:
DataSource=&quot;<%# DataView1 %>&quot;

This means that I can add columns etc. using clicks and drag-and-drop and so on. Easy and helpful.

But at runtime, I want to alter the data source for the grid - but it always overrides this with the design-time setting above.

Does anyone know when and how these <%# %> bindings are resolved and how this issue may be circumvented? (Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top