Hi,
>"Guy Pelletier" <Guy.Pelletier@cstjean.qc.ca> wrote in message
> >news:eLM2XSm2FHA.1188@TK2MSFTNGP12.phx.gbl...
[quoted text clipped - 9 lines]
> rows, I expected that the binding would automatically create
> a new row in wich to store the data but it does not to work.
>Is it how it is supposed to work or should I programmatically
>create a new row ?
You need to create a new row:
BindingContext[ DataSource, DataMember ].AddNew();
Note that DataSource and DataMember must be exactly the same as the ones you
used to bind the child controls. DataMember should not include any
fieldname though.
eg.:
BindingContext[ dataSet, "MasterTable.ChildRelation"].AddNew();
HTH,
Greetings
>Thank's
Guy Pelletier - 27 Oct 2005 20:46 GMT
Hi,
It's what I tought but it's nice to have it confirmed.
Thank's for taking taking the time to answer my question.
Guy
>>> Bart Mermuys<bmermuys.nospam@hotmail.com> 27 Octobre 2005 06:42 >>>
Hi,
>"Guy Pelletier" <Guy.Pelletier@cstjean.qc.ca> wrote in message
> >news:eLM2XSm2FHA.1188@TK2MSFTNGP12.phx.gbl...
[quoted text clipped - 9 lines]
> rows, I expected that the binding would automatically create
> a new row in wich to store the data but it does not to work.
>Is it how it is supposed to work or should I programmatically
>create a new row ?
You need to create a new row:
BindingContext[ DataSource, DataMember ].AddNew();
Note that DataSource and DataMember must be exactly the same as the ones you
used to bind the child controls. DataMember should not include any
fieldname though.
eg.:
BindingContext[ dataSet, "MasterTable.ChildRelation"].AddNew();
HTH,
Greetings
>Thank's