JD
Wed Sep 29 14:45:03 CDT 2004
thank you
"Sijin Joseph" <sijinNOSPAMdotnet@hotmail.com> wrote in message
news:eWeGGNSpEHA.1992@TK2MSFTNGP09.phx.gbl...
> Ok in this case you will also need to pass the BindingContext of the
> parent form to the modal form and set the BindingContext of the Modal form
> to this passed BindingContext, something like
>
> public class ModalForm
> {
> public ModalForm(BindingContext ctxt,DataTable table)
> {
> this.BindingContext = ctxt;
> ...
> }
> }
>
>
> Sijin Joseph
>
http://www.indiangeek.net
>
http://weblogs.asp.net/sjoseph
>
>
> JD wrote:
>> Sijin,
>> Thanks that worked well.
>> Once I have passed the 'new' modal form the datatable, How do I
>> synchornize the modal form when the record in the main form is moved to
>> either "next" or "previous" using navigation buttons? Right now the data
>> that shows in the grid on the modal form is for the first record in the
>> dataset no matter which record shows in the main form.
>> jim
>>
>> "Sijin Joseph" <sijinNOSPAMdotnet@hotmail.com> wrote in message
>> news:O2oACu9oEHA.644@tk2msftngp13.phx.gbl...
>>
>>>You need to modify the constructor of the form so that it takes a
>>>DataTable as a parameter and then pass the datatable as a parameter when
>>>you create the modal form using new
>>>
>>>Sijin Joseph
>>>
http://www.indiangeek.net
>>>
http://weblogs.asp.net/sjoseph
>>>
>>>
>>>JD wrote:
>>>
>>>>I have built a main form that creates and fills a dataset. I want to
>>>>open a modal form and pass it one of the tables in the dataset but I
>>>>don't know how to code it in VB. Does anyone have an example or point
>>>>me in the right direction to find some code?
>>>>
>>>>thanks
>>
>>