You can create your own CRUD statements and avoid creating a magic key.
Simply write the INSERT, UPDATE and DELETE statement rather than relying on
the DataAdapter to automagically create one for you. As long as the SQL for
all four statements is correct, you are up and running.
--
Gregory A. Beamer
MVP; MCP: +I, SD, SE, DBA
*************************************************
Think outside the box!
*************************************************
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:#Z**************@TK2MSFTNGP09.phx.gbl...
Hi,
I thought it isn't possible to use a SqlDataAdapter and a Databound grid
when there isn't a 'real' primary key on the table.
Although, is there a way to use it, and define somewhere in the
SqlDataAdapter my own primary key on the table?
I can't add a primary key to the table, so I guess that's the only way to
find a solution?
Any help would be really appreciated!
Thans a lot in advance,
Pieter