Ilya
Mon Dec 19 16:42:07 CST 2005
NETCF V1 does not support related bindings at all, so it's unaware of
primary key existence.
That would be two completely unrelated bindings.
On NETCF V2 you can bind to relations as you would on desktop.
As to position, what's the value of oBMB.count?
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
*** Want to find answers instantly? Here's how... ***
1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
"Katy" <none@none> wrote in message
news:uAjOqlOBGHA.3916@TK2MSFTNGP10.phx.gbl...
> For example, when I try to change position of BindingManager, value for
> oBMB.Position is always zero.
> For example, when I do: oBMB.Position = oBMB.count - 1
>
> Can it influence that primary key that I define are composed by 2 or 3
> fields for each table ?
>
>
> "Ilya Tumanov [MS]" <ilyatum@online.microsoft.com> escribió en el mensaje
> news:43a72de6$1@news.microsoft.com...
>> Please be more specific. How exactly it "does not work correctly"? How
>> does it work?
>>
>> I would say in this case you should get two completely unrelated
>> bindings. Is that not the case?
>>
>>
>> Best regards,
>>
>> Ilya
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> *** Want to find answers instantly? Here's how... ***
>>
>> 1. Go to
>>
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
>> 2. Type your question in the text box near "Search this group" button.
>> 3. Hit "Search this group" button.
>> 4. Read answer(s).
>>
>> "Katy" <none@none> wrote in message
>> news:%23rPqIXOBGHA.3496@TK2MSFTNGP11.phx.gbl...
>>>I have following code, for example:
>>>
>>> Public Class FrmClientes
>>>
>>> Private oBMBDel As BindingManagerBase
>>> Private oBMBDel As BindingManagerBase
>>>
>>> Private Sub MiDataBinding()
>>>
>>> Dim dtFmacli As DataTable = dsFmacli.Tables("Fmacli")
>>> Dim dtFmainc As DataTable = dsFmainc.Tables("Fmainc")
>>>
>>>
>>> txtNombre.DataBindings.Add("Text", dtFmacli, "nombre")
>>> txtDomicilio.DataBindings.Add("Text", dtFmainc, "domicilio")
>>>
>>> oBMB = Me.BindingContext(dtFmacli)
>>> oBMBDel = Me.BindingContext(dtFmainc)
>>>
>>> End Sub
>>>
>>> End Class
>>>
>>> Main table of the form is "Fmacli". My problem is that
>>> BindingManagerBase oBMB doesn't works correctly,
>>>
>>>
>>> "Ilya Tumanov [MS]" <ilyatum@online.microsoft.com> escribió en el
>>> mensaje news:43a70f72$1@news.microsoft.com...
>>>> BindingManagerBase classes for both DataSet's will be in same
>>>> BindingContext collection on the form; you don't have to do anything.
>>>>
>>>> Did you mean something different? Please clarify what you're trying to
>>>> achieve.
>>>>
>>>>
>>>>
>>>> Best regards,
>>>>
>>>> Ilya
>>>>
>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.
>>>>
>>>> *** Want to find answers instantly? Here's how... ***
>>>>
>>>> 1. Go to
>>>>
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
>>>> 2. Type your question in the text box near "Search this group" button.
>>>> 3. Hit "Search this group" button.
>>>> 4. Read answer(s).
>>>>
>>>> "Alex" <none@none> wrote in message
>>>> news:%239yI3TMBGHA.2788@TK2MSFTNGP14.phx.gbl...
>>>>> Hi:
>>>>>
>>>>> How can I binf different datasets to the same bindingcontext of the
>>>>> form?
>>>>>
>>>>> Regards.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>