the schema is/was not the problem. the command is created correctly.
look the log of MySQL:
"UPDATE `tbl_ersatz_abs` SET `Rekl_ID`=1, `Pos`=4, `ErsatzAB`=1644437,
`ErsatzABText`='@Y', `ZNA_ID`=4 WHERE `E_AB_ID` <=> 5 AND `Rekl_ID` <=> 1
AND `Pos` <=> 4 AND `ErsatzAB` <=> 1644437 AND `ErsatzABText` <=> '@Z' AND
`ZNA_ID` <=> 4; SELECT `E_AB_ID`, `Rekl_ID`, `Pos`, `ErsatzAB`,
`ErsatzABText`, `ZNA_ID` FROM `tbl_ersatz_abs` WHERE (`E_AB_ID`=5)"
if you're not familiar with MySQL: the operator <=> does a 'NULL-safe equal'
comparison.
if i use FillSchema or the AddWithSchema option, the grid annoys me with
popup boxes that i should set an ID. i don't want to set an ID in my
program, i want the server to do this.
by the way the Fill is done much earlier at loading the form.
the problem was a few lines before the posted sub. another datasource was
saved there and at the EndCurrentEdit of this saving a property set was
called which did a new select on the database and so overwrote my changes.
however, thanx for trying to help
netracer
"Cor Ligthert" <notmyfirstname@planet.nl> schrieb im Newsbeitrag
news:OL4FpS7eFHA.2700@tk2msftngp13.phx.gbl...
[quoted text, click to view] > NetRacer,
>
>>
>> Dim daGrid As New MySqlDataAdapter(String.Format("SELECT * FROM
>> {0} ", dvGrid.Table.TableName), conn)
>> Dim cbGrid As MySqlCommandBuilder
>>
>> Try
>> cbGrid = New MySqlCommandBuilder(daGrid)
>>
> You dataadapter has not any schemainformation, how would it create the
> commands.
>
> I never did it this way, however you can try the Dataadapter.fillschema in
> advance, I assume that it will solve your problem.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatacommondbdataadapterclassfillschematopic.asp
>
> There is written that it adds a datatable. Therefore I assume it is not
> going 1:1
>
> The datatable that uses your dvGrid is just dvGrid.DataTable
>
> I hope this helps,
>
> Cor
>
>
>