469,596 Members | 2,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,596 developers. It's quick & easy.

Refresh Schema doesn't work

When you link an ObjectDataSource to a business object, it appears that the
Refresh Schema button does nothing. Here's the scenario:

I have two class libraries, one is a Data Access Layer and the other is a
List class. The former implements all of the CRUD logic, and the latter
implements a number of interfaces for the purpose of aggregate
functionality. For example, the following is the method I select when I
configure the object datasource for a class I call "Template" (No relation
to <Template>):

public static List<TemplateInfoGetTemplates()
List<TemplateInfotemplates = new List<TemplateInfo>();

TemplateInfo[] templatelist =

foreach (TemplateInfo info in templatelist)

return templates;

Now, all works fine, once I do that and link a GridView to the
ObjectDataSource, I see my columns and can manipulate them in design mode.
The problem occurs when I modify the underlying database object, perhaps
adding a column. In this case the TemplateInfo class is modified to store
the new fields. However nothing I do will cause those columns to appear in
the "Edit Columns" wizard. I tried "Refresh Schema" to no avail. I even ran
SQL Server Profiler to see what happens when Refresh Schema is selected -

So, how do I get those columns to appear?

Apr 6 '07 #1
0 1645

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Rick | last post: by
reply views Thread by Harold Putman | last post: by
12 posts views Thread by martin1 | last post: by
reply views Thread by yisroem | last post: by
13 posts views Thread by Matthias S. | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.