[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

INotifyPropertyChanged w/ ADO.NET Entity and RadGridView WPF vb.net

Posted on 2010-11-11
2
Medium Priority
?
1,072 Views
Last Modified: 2012-05-10
Hi,

I am using an ADO.NET Entity of my SQL Server database as the business object for the itemsource of a Telerik RadGridView in WPF (vb).  How can I implement INotifyPropertyChanged so that the grid can maintain up to date data?  
0
Comment
Question by:ccwestbrook
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
x77 earned 2000 total points
ID: 34114307
Implemnt the INotifyPropertyChanged is easy

You add the Implements clause to your class:

Friend Class Rgra
    Implements INotifyPropertyChanged


This add a Event to your Class

    Public Event PropertyChanged As PropertyChangedEventHandler _
        Implements INotifyPropertyChanged.PropertyChanged


You can then Raise the event on each Set Property

     Public Property mLeft() As Double
        Get
            Return _mLeft
        End Get
        Set(ByVal value As Double)
            _mLeft = value
           RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("mLeft"))
        End Set
    End Property


But note that you are using  a String "mLeft" to do it.
You can read an excelent article to avoid that.

http://www.deanchalk.me.uk/post/WPF-e28093-Easy-INotifyPropertyChanged-Via-DynamicObject-Proxy.aspx
0
 

Author Comment

by:ccwestbrook
ID: 34114621
Thanks.  The problem I have is the ADO.NET Entity is an .edmx xml file, not a .vb class file.  I read that INotifyPropertChanged can be used for it but I don't see how.  
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question