How does this help the OP? The question wasn't how to dynamically generate
tables, it was how to dynamically update a dataset from changes in a grid
when the dataset has been created dynamically.
In addition, a CommandBuilder is also available for other data sources
besides SQL, however it is generally considered NOT a good idea to use it as
it is limited in situations where it will create correct statements.
"Val Mazur (MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> If you are using SQL Server, then you could use CommandBuilder class that
> will allow you automatically build INSERT, UPDATE and DELETE SQL
> statements for your DataAdapter based on your SELECT statement. I believe
> it should work for you
>
> --
> Val Mazur
> Microsoft MVP
>
> http://xport.mvps.org
>
>
>
> "st" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi Scott,
>>
>> Thanks for the information.
>>
>> As the source table for the DataGrid can change, I need a solution that
>> doesn't hard-code field names into the update.
>>
>> Has anybody created a routine that will cope with this situation?
>>
>> Thanks,
>>
>> Simon
>>
>
>