DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 25 Jul 2007 16:02:41 -0000,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    None
          2    None
          3    Peter Foot [MVP]


ListChanged event not fired when appointment collection updated   
hi there,

i am developing a calendar application using c# and cf2 sp1, and i got
stuck when dealing with the ListChanged event of the
appointmentcollection. i have a datagrid to populate the appointment
items of the collection. the event is only fired when the collection
is updated by my own application, it does not when the collection is
updated by the wm5 calendar application, say adding or removing an
appointment.
what i want to achieve is whenever the collection is updated (item
added, changed or removed) by my application or the wm5 calendar, i
have a chance to adjust the size of the datagrid in order to show the
updated appointments.
now, the datagrid can only resize when the appointments are updated by
my own application. by looking at the collection.count, i am sure the
collection is updated by the wm5 calendar, but since the ListChanged
event is not fired, i got no chance to resize the datagrid for the
changes.
can anyone tell me how to get a chance to resize the datagrid when the
collection is updated by the wm5 calendar?

thanks
batterheadccw
Date:Wed, 25 Jul 2007 16:02:41 -0000   Author:  

Re: ListChanged event not fired when appointment collection updated   
On 7 26 ,   12 02 , None  wrote:

> hi there,
>
> i am developing a calendar application using c# and cf2 sp1, and i got
> stuck when dealing with the ListChanged event of the
> appointmentcollection. i have a datagrid to populate the appointment
> items of the collection. the event is only fired when the collection
> is updated by my own application, it does not when the collection is
> updated by the wm5 calendar application, say adding or removing an
> appointment.
> what i want to achieve is whenever the collection is updated (item
> added, changed or removed) by my application or the wm5 calendar, i
> have a chance to adjust the size of the datagrid in order to show the
> updated appointments.
> now, the datagrid can only resize when the appointments are updated by
> my own application. by looking at the collection.count, i am sure the
> collection is updated by the wm5 calendar, but since the ListChanged
> event is not fired, i got no chance to resize the datagrid for the
> changes.
> can anyone tell me how to get a chance to resize the datagrid when the
> collection is updated by the wm5 calendar?
>
> thanks
> batterheadccw


hi there,

does anyone know how can my application be notified about the changes
to the collection by other applications?

thanks
batterheadccw
Date:Wed, 25 Jul 2007 16:17:09 -0000   Author:  

Re: ListChanged event not fired when appointment collection updated   
This is due to the way the class is implemented in the Microsoft libraries. 
It doesn't respond to events from POOM itself. I wrote an alternative 
library which does support this :- http://inthehand.com/content/Mobile.aspx

Peter

-- 
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"None"  wrote in message 
news:1185379361.737889.192250@i13g2000prf.googlegroups.com...

> hi there,
>
> i am developing a calendar application using c# and cf2 sp1, and i got
> stuck when dealing with the ListChanged event of the
> appointmentcollection. i have a datagrid to populate the appointment
> items of the collection. the event is only fired when the collection
> is updated by my own application, it does not when the collection is
> updated by the wm5 calendar application, say adding or removing an
> appointment.
> what i want to achieve is whenever the collection is updated (item
> added, changed or removed) by my application or the wm5 calendar, i
> have a chance to adjust the size of the datagrid in order to show the
> updated appointments.
> now, the datagrid can only resize when the appointments are updated by
> my own application. by looking at the collection.count, i am sure the
> collection is updated by the wm5 calendar, but since the ListChanged
> event is not fired, i got no chance to resize the datagrid for the
> changes.
> can anyone tell me how to get a chance to resize the datagrid when the
> collection is updated by the wm5 calendar?
>
> thanks
> batterheadccw
> 
Date:Wed, 25 Jul 2007 17:29:55 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us