Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

DataGridView CellValueChanged event not firing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pat.maher@qg.com - 11 Aug 2006 14:45 GMT
I have a DataGridView that is bound to a list of objects through it's
datasource property.
If a cell in the grid is changed by editing directly in the cell I get
a CellValueChanged event.
If the value is changed in the underlying object that causes the cell
in the grid to get changed then the CellValueChanged event does not
occur.

Does anyone know of a way to detect a cell value changing for both
cases? I would like to detect the value change without leaving the row
since I am trying to give immediate visual feedback regarding the
validity of the data being entered and don't want the user to have to
leave the row to find out if data in a cell is valid.
Jim Wooley - 11 Aug 2006 15:32 GMT
How are you firing the notification that your custom object's value changed?
In the past, you could have an event for each property addign the Changed
suffix (thus for MyProperty, you would have a MyPropertyChanged event that
you would fire as necessary). The DGV SHOULD listen for these events and
update accordingly. I have noticed it doesn't play nice occasionally.
Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx

> I have a DataGridView that is bound to a list of objects through it's
> datasource property.
[quoted text clipped - 8 lines]
> validity of the data being entered and don't want the user to have to
> leave the row to find out if data in a cell is valid.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.