Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 edit view in data grid

Author  Topic 

Mark H
Starting Member

6 Posts

Posted - 2009-09-28 : 18:56:32
I am putting together a web site that includes a SQL Server Express 2008 file.I use VWD 2008 Express and SQL Server Management Studio 2008. It is not designated as an Express version.
I have a number of tables and have developed a view between two of them. I have a web page where I want to add, edit and delete records from the second table. The first table has two columns- a UID column and a use name column. The second table has a UID column that relates the two tables. The other columns are a Use name column, a DID column a NID column and a NID name column.

Why, when I click on the GridView tasks button and go to configure datasource, accept the connection string, go to the next form and check "specify columns from a table or view" and select K-Use K-UseUseSet, the name of the view I created, and check all the columns- UID, Use, DID, NID and Name, why when I check "advanced" do I find the items "Generate INSERT,UPDATE AND DELETE statements" and "Use optimistic concurrency" shaded out so I can't select them and therefore can't do the Edit and Delete commands in the Gridview?

Yes, I know the GRidView doesn't do adds. I have to use a DetailsView.

What am I missing?

Try not to give me any pages from MSFT. They are usually very optuse and talk in terms I don't understand.
My background is Access and I have had very good results with it. The file I am presently working on came from Access.

Specifically, I'd like to know what to click on to make this sort of scenario workable. Essentially, the question is how does one add, change and delete records when the table to be changed is a relation of two or more tables in a view?
   

- Advertisement -