
Signature
Ginny Caughey
.NET Compact Framework MVP
In fact this scenario is automatically handled by CurrencyManager class in
data binding engine.
If you have DataTable bound to the grid and bunch of simple controls bound
to the same DataTable, CurrencyManager would bind simple controls to the
current row in the grid.
So, there's nothing to code besides setting up bindings like this:
dataGrid.DataSource = dataTable;
upDown.Bindings.Add("Value", dataTable, "RecordedAmount");
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.compactfra
mework?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).
> Peter,
>
[quoted text clipped - 17 lines]
>>
>> Pete
Ginny Caughey [MVP] - 09 Jan 2006 20:54 GMT
Thanks, Ilya. I misread what he wanted to do and thought he wanted to change
the selected row in the grid based on the up/down control. But in any case,
as long as he has a working solution...

Signature
Ginny Caughey
.NET Compact Framework MVP
> In fact this scenario is automatically handled by CurrencyManager class in
> data binding engine.
[quoted text clipped - 46 lines]
>>>
>>> Pete
Peter Morris [Droopy eyes software] - 09 Jan 2006 23:39 GMT
Ah, I can databind to the datagrid then? I will try that, thanks!