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="<%# DataView1 %>"
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)
The control gets the following data binding code at design-time:
DataSource="<%# DataView1 %>"
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)